File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1- name : Publish Package to npmjs
1+ name : Publish package to GitHub Packages
22on :
33 release :
44 types : [created]
55jobs :
66 build :
7- runs-on : ubuntu-latest
7+ runs-on : ubuntu-latest
8+ permissions :
9+ contents : read
10+ packages : write
811 steps :
912 - uses : actions/checkout@v2
10- # Setup .npmrc file to publish to npm
13+ # Setup .npmrc file to publish to GitHub Packages
1114 - uses : actions/setup-node@v2
1215 with :
1316 node-version : ' 16.x'
14- registry-url : ' https://registry.npmjs.org'
17+ registry-url : ' https://npm.pkg.github.com'
18+ # Defaults to the user or organization that owns the workflow file
19+ scope : ' @octocat'
1520 - run : npm ci
1621 - run : npm publish
1722 env :
18- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
23+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments