File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,16 @@ jobs:
34
34
- name : Get pkgName for tag
35
35
id : tag
36
36
run : |
37
- # skip if alpha
37
+ # Check if the tag contains " alpha"
38
38
if [[ $GITHUB_REF_NAME =~ alpha ]]; then
39
- exit 0
39
+ echo "isAlpha=true" >> $GITHUB_OUTPUT
40
+ else
41
+ echo "isAlpha=false" >> $GITHUB_OUTPUT
40
42
fi
41
43
42
44
# `%@*` truncates @ and version number from the right side.
43
45
# https://stackoverflow.com/questions/9532654/expression-after-last-specific-character
44
46
pkgName=${GITHUB_REF_NAME%@*}
45
-
46
47
echo "pkgName=$pkgName" >> $GITHUB_OUTPUT
47
48
48
49
- if : steps.tag.outputs.pkgName == 'plugin-react-swc'
54
55
env :
55
56
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
56
57
57
- - # only run if tag is not alpha
58
- if : steps.tag.outputs.pkgName
59
- uses : ArnaudBarre/github-release@e8d55cf5b215f7cf998ad2387044b9e7d5dd8112 # v1
58
+ - if : steps.tag.outputs.isAlpha == 'false'
59
+ uses : ArnaudBarre/github-release@4fa6eafe8e2449c7c1c5a91ae50de4ee34db0b40 # v1.5.0
60
60
with :
61
61
path : packages/${{ steps.tag.outputs.pkgName }}/CHANGELOG.md
62
+ tag-name : ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments