From c0c110de1acab5638a5df0283dc287d3e272845e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 01:16:31 +0000 Subject: [PATCH] Address code review feedback: improve portability and error handling Co-authored-by: louislam <1336778+louislam@users.noreply.github.com> --- .github/workflows/beta-release.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 4c602c316..c1b8a911f 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -121,7 +121,7 @@ jobs: echo "PR created: $PR_URL" # Extract PR number from URL - PR_NUMBER=$(echo $PR_URL | grep -oP '\d+$') + PR_NUMBER=$(basename "$PR_URL") echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT - name: Post changelog comment @@ -154,12 +154,17 @@ jobs: RELEASE_BETA_VERSION: ${{ inputs.version }} RELEASE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Send a space character to continue past the pressAnyKey prompt - printf " " | npm run release-beta + # Send input to continue past the pressAnyKey prompt + yes ' ' | npm run release-beta - name: Create dist tarball run: | - tar -zcvf dist.tar.gz dist + if [ -d dist ]; then + tar -zcvf dist.tar.gz dist + else + echo "Error: dist directory not found" + exit 1 + fi - name: Upload dist.tar.gz to PR env: