diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6095ad9..f8f2929e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ 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 }} @@ -41,12 +41,12 @@ jobs: 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) {