File tree 2 files changed +33
-1
lines changed
2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Package to npmjs
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ version :
6
+ description : " The version to publish"
7
+ required : true
8
+ tag :
9
+ description : " Tag"
10
+ required : true
11
+ default : " latest"
12
+ type : choice
13
+ options :
14
+ - latest
15
+ - snapshot
16
+ - next
17
+ jobs :
18
+ publish :
19
+ runs-on : ubuntu-latest
20
+ permissions :
21
+ id-token : write
22
+ contents : read
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - uses : actions/setup-node@v4
26
+ with :
27
+ node-version : " 20.x"
28
+ registry-url : " https://registry.npmjs.org"
29
+ - run : npm pkg set "version=${{ inputs.version }}"
30
+ - run : npm publish --provenance --tag ${{ inputs.tag }} --access public
31
+ env :
32
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " remark-typescript-tools" ,
3
3
"author" : " Lenz Weber-Tronic" ,
4
- "version" : " 1.1 .0" ,
4
+ "version" : " 2.0.0-alpha .0" ,
5
5
"license" : " MIT" ,
6
6
"type" : " module" ,
7
7
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments