File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 1- name : Publish Package
1+ name : Publish Package to npmjs
22
33on :
44 push :
88jobs :
99 publish :
1010 runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ id-token : write
1114
1215 steps :
1316 - name : Checkout code
14- uses : actions/checkout@v4.2.2
17+ uses : actions/checkout@v4
1518
1619 - name : Setup Node.js
17- uses : actions/setup-node@v4.1.0
20+ uses : actions/setup-node@v4
1821 with :
1922 node-version : 18
20- registry-url : https://npm.pkg.github.com
23+ registry-url : " https://registry.npmjs.org "
2124
2225 - name : Install dependencies
2326 run : npm install
2427
2528 - name : Build package
2629 run : npm run build
2730
28- - name : Set up npm authentication
29- run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
31+ # - name: Set up npm authentication
32+ # run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
3033
3134 - name : Publish to GitHub Packages
32- run : npm publish
35+ run : npm publish --provenance --access public
3336 env :
34- NPM_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
37+ NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
You can’t perform that action at this time.
0 commit comments