Address code review feedback: improve portability and error handling
Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
This commit is contained in:
parent
5fbea9d485
commit
c0c110de1a
13
.github/workflows/beta-release.yml
vendored
13
.github/workflows/beta-release.yml
vendored
@ -121,7 +121,7 @@ jobs:
|
|||||||
echo "PR created: $PR_URL"
|
echo "PR created: $PR_URL"
|
||||||
|
|
||||||
# Extract PR number from 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
|
echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Post changelog comment
|
- name: Post changelog comment
|
||||||
@ -154,12 +154,17 @@ jobs:
|
|||||||
RELEASE_BETA_VERSION: ${{ inputs.version }}
|
RELEASE_BETA_VERSION: ${{ inputs.version }}
|
||||||
RELEASE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
RELEASE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# Send a space character to continue past the pressAnyKey prompt
|
# Send input to continue past the pressAnyKey prompt
|
||||||
printf " " | npm run release-beta
|
yes ' ' | npm run release-beta
|
||||||
|
|
||||||
- name: Create dist tarball
|
- name: Create dist tarball
|
||||||
run: |
|
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
|
- name: Upload dist.tar.gz to PR
|
||||||
env:
|
env:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user