Skip to content

Commit

Permalink
fix: address failure in release action (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnanand5 authored Oct 17, 2024
1 parent 0d78477 commit 992a18a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const { exec } = require('@actions/exec');
const { exec: execCommand } = 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('yarn', ['semantic-release']);
await execCommand('yarn', ['semantic-release']);
break;
} catch (error) {
if (attempt < maxRetry) {
Expand Down

0 comments on commit 992a18a

Please sign in to comment.