Skip to content

Commit

Permalink
chore: release workflow now can be tested by pushing to a v3.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 0ed3511 commit d47a294
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
Expand Up @@ -2,13 +2,14 @@ name: v3.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
- v3.x-test
tags:
- 'v3.[0-9]+.[0-9]+'
- 'v3.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'v3.[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
- 'v3.[0-9]+.[0-9]+-test.[0-9]+'

jobs:
debug:
Expand Down
2 changes: 1 addition & 1 deletion release
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 d47a294

Please sign in to comment.