mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-28 00:20:43 +00:00
ci: wait for published before executing post release steps
This commit is contained in:
parent
032da0d17a
commit
e5d6be77aa
22
.github/workflows/POST_RELEASE.yml
vendored
22
.github/workflows/POST_RELEASE.yml
vendored
@ -16,6 +16,26 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Set TAG
|
||||
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
||||
- name: Wait for published
|
||||
run: |
|
||||
i=0
|
||||
pkg="bpmn-js@${{ env.TAG }}"
|
||||
|
||||
until [ $i -gt 10 ]
|
||||
do
|
||||
echo "Checking for $pkg in npm registry..."
|
||||
|
||||
info=$(npm info $pkg)
|
||||
if [[ "$info" != "" ]]; then
|
||||
echo "Found."
|
||||
break
|
||||
fi
|
||||
|
||||
((i++))
|
||||
sleep 15s
|
||||
done
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
@ -29,8 +49,6 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.OS }}-node-
|
||||
${{ runner.OS }}-
|
||||
- name: Set TAG
|
||||
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
||||
- name: Check for stable release
|
||||
run: |
|
||||
if [[ ${{ env.TAG }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user