From dbb27e4365526b613052a82a0dbf6c35de98bafc Mon Sep 17 00:00:00 2001 From: Krishna Anandan Ganesan Date: Thu, 17 Oct 2024 10:16:51 -0500 Subject: [PATCH] fix: address failure in release action --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {