File tree 4 files changed +4
-4
lines changed 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 55
55
then
56
56
echo "__NEW_RELEASE=true" >> $GITHUB_ENV
57
57
echo "value=production" >> $GITHUB_OUTPUT
58
- elif [[ $RELEASE_CHECK = "legacy-release" ]];
58
+ elif [[ $RELEASE_CHECK = v* ]];
59
59
then
60
60
echo "value=production" >> $GITHUB_OUTPUT
61
61
elif [ '${{ github.ref }}' == 'refs/heads/canary' ]
Original file line number Diff line number Diff line change 40
40
id : is-release
41
41
run : |
42
42
RELEASE_CHECK=$(node ./scripts/check-is-release.js 2> /dev/null || :)
43
- if [[ $RELEASE_CHECK = "new-release" || $RELEASE_CHECK = "legacy-release" ]];
43
+ if [[ $RELEASE_CHECK = "new-release" || $RELEASE_CHECK = v* ]];
44
44
then
45
45
echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
46
46
else
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const checkIsRelease = async () => {
16
16
const newPublishMsgRegex = / ^ V e r s i o n P a c k a g e s ( \( ( c a n a r y | r c ) \) ) ? ( \( # \d + \) ) ? $ /
17
17
18
18
if ( publishMsgRegex . test ( versionString ) ) {
19
- console . log ( 'legacy-release' )
19
+ console . log ( versionString )
20
20
process . exit ( 0 )
21
21
} else if ( newPublishMsgRegex . test ( commitMsg ) ) {
22
22
console . log ( 'new-release' )
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
RELEASE_CHECK=$( node ./scripts/check-is-release.js 2> /dev/null || :)
4
- if [[ $RELEASE_CHECK = " new-release" || $RELEASE_CHECK = " legacy-release " ]];
4
+ if [[ $RELEASE_CHECK = " new-release" || $RELEASE_CHECK = v * ]];
5
5
then
6
6
echo " Publish occurred, running release stats..."
7
7
else
You can’t perform that action at this time.
0 commit comments