File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : promote
2
2
on :
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
7
8
jobs :
8
9
build-and-promote :
9
10
runs-on : ubuntu-latest
10
11
env :
11
12
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
12
13
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
13
14
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
15
+ NEW_TAG_NAME : ${{ github.event.inputs.new_tag_name }}
14
16
steps :
15
17
- uses : actions/checkout@v4
16
18
- name : Build for promotion
26
28
- name : Manual publish
27
29
run : |
28
30
cd packages/module
29
- npm version ${{ github.ref_name }} --git-tag-version false
31
+ npm version "$NEW_TAG_NAME" --git-tag-version false
30
32
npm publish --tag=latest
You can’t perform that action at this time.
0 commit comments