Skip to content

Commit

Permalink
chore: release workflow now can be tested by pushing to a v4.x-test b…
Browse files Browse the repository at this point in the history
…ranch
  • Loading branch information
lquixada committed Jul 3, 2023
1 parent c4c3663 commit a2aa5f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ name: v4.x releases

on:
push:
branches:
# Pushes to the branch below will test the release workflow without
# publishing version on npm or generating new git tags
- v4.x-test
tags:
- 'v4.[0-9]+.[0-9]+'
- 'v4.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'v4.[0-9]+.[0-9]+-beta.[0-9]+'
# The "test" prerelease version exist solely to validate changes on the
# release workflow. This is intended to be published
- 'v4.[0-9]+.[0-9]+-test.[0-9]+'

jobs:
install:
Expand Down
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ latest_major=$(echo $latest_version | cut -d. -f1)


# If it's a test prerelease, we just want to test the release workflow (dry run it!)
if [[ "$workflow_version" == *"-test."* ]]; then
if [[ "$workflow_version" == *"-test"* ]]; then
npm publish --tag $workflow_track --dry-run && \
exit 0
fi
Expand Down

0 comments on commit a2aa5f4

Please sign in to comment.