File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : release
2
+ run-name : Release npm ${{ github.ref_name }}
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - master
8
+ paths :
9
+ - package.json
10
+ workflow_dispatch :
11
+ inputs :
12
+ channel :
13
+ type : choice
14
+ description : ' The npm dist-tag to publish to (default: `latest`)'
15
+ default : latest
16
+ options :
17
+ - latest
18
+ - next
19
+
20
+ jobs :
21
+ release :
22
+ permissions :
23
+ contents : write
24
+ id-token : write
25
+
26
+ name : npm release
27
+ runs-on : ubuntu-22.04
28
+ timeout-minutes : 10
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+ - uses : actions/setup-node@v4
32
+ with :
33
+ node-version : ' 22'
34
+ cache : npm
35
+ - run : make compile
36
+ -
uses :
JS-DevTools/[email protected]
37
+ with :
38
+ token : ${{ secrets.NPM_TOKEN }}
39
+ tag : ${{ inputs.channel }}
40
+ provenance : true
41
+
42
+ - run : git status
43
+ - run : git log --oneline
You can’t perform that action at this time.
0 commit comments