Skip to content

Commit a2aa5f4

Browse files
committed
chore: release workflow now can be tested by pushing to a v4.x-test branch
1 parent c4c3663 commit a2aa5f4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ name: v4.x releases
22

33
on:
44
push:
5+
branches:
6+
# Pushes to the branch below will test the release workflow without
7+
# publishing version on npm or generating new git tags
8+
- v4.x-test
59
tags:
610
- 'v4.[0-9]+.[0-9]+'
711
- 'v4.[0-9]+.[0-9]+-alpha.[0-9]+'
812
- 'v4.[0-9]+.[0-9]+-beta.[0-9]+'
9-
# The "test" prerelease version exist solely to validate changes on the
10-
# release workflow. This is intended to be published
11-
- 'v4.[0-9]+.[0-9]+-test.[0-9]+'
1213

1314
jobs:
1415
install:

release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ latest_major=$(echo $latest_version | cut -d. -f1)
1313

1414

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

0 commit comments

Comments
 (0)