File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed
Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 1- # https://docs.github .com/en/actions/publishing-packages/publishing-nodejs-packages
1+ # https://docs.npmjs .com/trusted-publishers
22name : Publish Package to npmjs
3+
34on :
45 release :
56 types : [published]
67
78permissions :
89 contents : read
9- id-token : write
10+ id-token : write # Required for OIDC trusted publishing
1011
1112jobs :
12- build :
13+ npm-publish :
1314 runs-on : ubuntu-latest
1415 steps :
1516 - uses : actions/checkout@v4
16- - uses : actions/setup-node@v4
17+
18+ - name : Setup Node
19+ uses : actions/setup-node@v4
1720 with :
18- node-version : " 20.x"
21+ node-version : " lts/*"
22+ cache : " npm"
1923 registry-url : " https://registry.npmjs.org"
20- - run : npm ci
21- - run : npm publish --provenance --access public
24+
25+ - name : Install dependencies
26+ run : npm ci
27+
28+ - name : Run tests
29+ run : npm test
30+
31+ - name : Publish to NPM
32+ run : npm publish --access public
You can’t perform that action at this time.
0 commit comments