From 992a18a959cdf087516127bf315cfafd217789d0 Mon Sep 17 00:00:00 2001 From: Krishna Anandan Ganesan Date: Thu, 17 Oct 2024 16:54:28 -0500 Subject: [PATCH] fix: address failure in release action (#584) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fc2b146..1b8d0a35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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) {