ci: wait for published before executing post release steps

This commit is contained in:
Nico Rehwaldt 2021-08-20 10:46:23 +02:00 committed by fake-join[bot]
parent 032da0d17a
commit e5d6be77aa
1 changed files with 20 additions and 2 deletions

View File

@ -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]+$ ]]