Skip to content

Commit

Permalink
[CI] Add retry to release/build-vscode (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lycs-D authored Mar 25, 2024
1 parent 52f4541 commit 8814cfa
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,22 @@ jobs:
pushd editors/code
version=$(sed -E -n 's/^\s+"version": "([^"]+)".*/\1/gp' package.json)
echo "VERSION=$version" >> "$GITHUB_OUTPUT"
retry=0
echo "[+] Install dependencies"
npm install
npm run package
echo "[+] Package start"
set +e
while [[ ${retry} < 3 ]]; do
if npm run package; then
echo "[+] Package done"
break
else
sleep 1
let retry++
echo "[+] Package fail, ${retry} retry"
fi
done
set -e
popd
- name: Upload artifact
Expand Down

0 comments on commit 8814cfa

Please sign in to comment.