File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,16 @@ jobs:
3434 - name : Get pkgName for tag
3535 id : tag
3636 run : |
37- # skip if alpha
37+ # Check if the tag contains " alpha"
3838 if [[ $GITHUB_REF_NAME =~ alpha ]]; then
39- exit 0
39+ echo "isAlpha=true" >> $GITHUB_OUTPUT
40+ else
41+ echo "isAlpha=false" >> $GITHUB_OUTPUT
4042 fi
4143
4244 # `%@*` truncates @ and version number from the right side.
4345 # https://stackoverflow.com/questions/9532654/expression-after-last-specific-character
4446 pkgName=${GITHUB_REF_NAME%@*}
45-
4647 echo "pkgName=$pkgName" >> $GITHUB_OUTPUT
4748
4849 - if : steps.tag.outputs.pkgName == 'plugin-react-swc'
5455 env :
5556 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
5657
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
6060 with :
6161 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