Skip to content

Commit

Permalink
fix: address failure in release action
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnanand5 committed Oct 17, 2024
1 parent 9464627 commit dbb27e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ jobs:
git config --global user.name "github-actions[bot]"
git add . # Add all files, including documentation
git commit -m "chore: build and documentation for release"
git push
git push -- verbose --timeout=60
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run semantic-release
uses: actions/github-script@v6
with:
script: |
const exec = require('@actions/exec');
const { exec } = require('@actions/exec');
const maxRetry = 3;
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
for (let attempt = 1; attempt <= maxRetry; attempt++) {
try {
await exec.exec('yarn', ['semantic-release']);
await exec('yarn', ['semantic-release']);
break;
} catch (error) {
if (attempt < maxRetry) {
Expand Down

0 comments on commit dbb27e4

Please sign in to comment.