File tree Expand file tree Collapse file tree 2 files changed +17
-27
lines changed
Expand file tree Collapse file tree 2 files changed +17
-27
lines changed Original file line number Diff line number Diff line change 1- name : Publish new NPM Package
1+ name : Publish Package
22
33on :
44 release :
55 types : [created]
66
7+ permissions :
8+ id-token : write
9+ contents : read
10+
711jobs :
8- build :
12+ publish :
913 runs-on : ubuntu-latest
1014 steps :
11- - uses : actions/checkout@v1
12- - uses : actions/setup-node@v1
13- with :
14- node-version : 12
15- - name : npm install and test
16- run : |
17- npm install
18- npm test
15+ - uses : actions/checkout@v4
1916
20- publish-npm :
21- needs : build
22- runs-on : ubuntu-latest
23- steps :
24- - uses : actions/checkout@v1
25- - uses : actions/setup-node@v1
17+ - uses : actions/setup-node@v4
2618 with :
27- node-version : 12
28- registry-url : https://registry.npmjs.org/
29- - name : npm install and publish
30- run : |
31- npm install
32- npm publish
33- env :
34- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
19+ node-version : ' 24'
20+ registry-url : ' https://registry.npmjs.org'
21+
22+ - run : npm ci
23+ - run : npm run build --if-present
24+ - run : npm test
25+ - run : npm publish
Original file line number Diff line number Diff line change 11{
22 "editor.codeActionsOnSave" : {
3- "source.fixAll.eslint" : true
3+ "source.fixAll.eslint" : " explicit "
44 }
5- }
6-
5+ }
You can’t perform that action at this time.
0 commit comments