Skip to content

Commit f121b23

Browse files
committed
"Version Packages" or "Version Pacakges (canary)"
1 parent fc8d3a4 commit f121b23

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 2 additions & 4 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 (canary|stable)"
23+
# "Version Packages" or "Version Pacakges (canary)"
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|stable)\)$ ]];
53+
if [[ $RELEASE_CHECK =~ ^Version\ Packages(\ \(canary\))?$ ]];
5454
then
5555
echo "__NEW_RELEASE=true" >> $GITHUB_ENV
5656
elif [[ $RELEASE_CHECK = v* ]];
@@ -608,8 +608,6 @@ jobs:
608608
uses: changesets/action@v1
609609
with:
610610
publish: pnpm ci:publish
611-
title: Version Packages (${{ github.event.inputs.releaseType }})
612-
commit: Version Packages (${{ github.event.inputs.releaseType }})
613611
env:
614612
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
615613
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}

scripts/check-is-release.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +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 =
17-
/^Version Packages \((canary|release-candidate|stable)\)$/
16+
const newPublishMsgRegex = /^Version Packages( \(canary\))?$/
1817

1918
if (publishMsgRegex.test(versionString)) {
2019
console.log(versionString)

0 commit comments

Comments
 (0)