File tree 1 file changed +23
-6
lines changed
1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
2
3
3
on :
4
- push :
5
- tags :
6
- - v*.*.*
4
+ workflow_dispatch :
5
+ inputs :
6
+ publishTag :
7
+ description : " npm publish --tag <tag>"
8
+ required : true
9
+ default : " latest"
10
+ type : choice
11
+ options :
12
+ - latest
13
+ - next
14
+ - test
15
+ bump :
16
+ description : " Changelogen bump flag"
17
+ required : true
18
+ default : " --bump"
19
+ type : choice
20
+ options :
21
+ - --bump
22
+ - --prerelease
23
+ - --canary
7
24
8
25
permissions :
9
26
id-token : write
@@ -27,11 +44,11 @@ jobs:
27
44
- name : Install Packages
28
45
run : yarn install
29
46
30
- - name : Build
31
- run : yarn build
47
+ - name : Bump Version
48
+ run : yarn changelogen --release --push ${{ github.event.inputs.bump }}
32
49
33
50
- name : Publish to NPM
34
- run : npm publish --provenance
51
+ run : npm publish --provenance --tag ${{ github.event.inputs.publishTag }}
35
52
env :
36
53
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
37
54
YARN_NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments