Skip to content

Commit 8afb2f2

Browse files
committed
PR title Version Pacakges (canary|rc)
1 parent f6fa169 commit 8afb2f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
# See https://doc.rust-lang.org/rustc/platform-support/apple-darwin.html#os-version for more details
2121
MACOSX_DEPLOYMENT_TARGET: 11.0
2222
# This will become "true" if the latest commit is
23-
# "Version Packages" or "Version Pacakges (canary)"
23+
# "Version Packages" or "Version Pacakges \((canary|rc)\)"
2424
# set from scripts/check-is-release.js
2525
__NEW_RELEASE: 'false'
2626

@@ -50,7 +50,7 @@ jobs:
5050
run: |
5151
# TODO: Remove the new release check once the new release workflow is fully replaced.
5252
RELEASE_CHECK=$(node ./scripts/check-is-release.js 2> /dev/null || :)
53-
if [[ $RELEASE_CHECK =~ ^Version\ Packages(\ \(canary\))?$ ]];
53+
if [[ $RELEASE_CHECK =~ ^Version\ Packages(\ \((canary|rc)\))?$ ]];
5454
then
5555
echo "__NEW_RELEASE=true" >> $GITHUB_ENV
5656
elif [[ $RELEASE_CHECK = v* ]];

scripts/check-is-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const checkIsRelease = async () => {
1313

1414
const versionString = commitMsg.split(' ').pop().trim()
1515
const publishMsgRegex = /^v\d{1,}\.\d{1,}\.\d{1,}(-\w{1,}\.\d{1,})?$/
16-
const newPublishMsgRegex = /^Version Packages( \(canary\))?$/
16+
const newPublishMsgRegex = /^Version Packages( \((canary|rc)\))?$/
1717

1818
if (publishMsgRegex.test(versionString)) {
1919
console.log(versionString)

0 commit comments

Comments
 (0)