File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11name : promote
22on :
3- push :
4- # Sequence of patterns matched against refs/tags
5- tags :
6- - v2.*
3+ workflow_dispatch :
4+ inputs :
5+ new_tag_name :
6+ description : Name of tag created to be associated with this promotion.
7+ required : true
78jobs :
89 build-and-promote :
910 runs-on : ubuntu-latest
1011 env :
1112 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1213 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
1314 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
15+ NEW_TAG_NAME : ${{ github.event.inputs.new_tag_name }}
1416 steps :
1517 - uses : actions/checkout@v4
1618 - name : Build for promotion
2628 - name : Manual publish
2729 run : |
2830 cd packages/module
29- npm version ${{ github.ref_name }} --git-tag-version false
31+ npm version "$NEW_TAG_NAME" --git-tag-version false
3032 npm publish --tag=latest
You can’t perform that action at this time.
0 commit comments