File tree Expand file tree Collapse file tree 3 files changed +2
-20
lines changed Expand file tree Collapse file tree 3 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 1- name : Publish Package to npmjs and GitHub Packages
1+ name : Publish Package to npmjs
22
33on :
44 push :
1111 permissions :
1212 contents : read
1313 id-token : write
14- packages : write
1514
1615 steps :
1716 - name : Checkout code
3635 run : npm publish
3736 env :
3837 NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
39-
40- - name : Configure npm authentication for GitHub Packages
41- run : |
42- echo "@${OWNER}:registry=https://npm.pkg.github.com" >> ~/.npmrc
43- echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
44- env :
45- OWNER : ${{ github.repository_owner }}
46- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47-
48- - name : Publish to GitHub Packages
49- run : npm publish --registry https://npm.pkg.github.com/@${OWNER}/
Original file line number Diff line number Diff line change 11//registry.npmjs.org/:_authToken = ${ NODE_AUTH_TOKEN }
2- registry = https://registry.npmjs.org/
3-
4- @gabrielbarth:registry = https://npm.pkg.github.com
5- //npm.pkg.github.com/:_authToken = ${ GITHUB_TOKEN }
2+ registry = https://registry.npmjs.org/
Original file line number Diff line number Diff line change 3636 "repository" : {
3737 "type" : " git" ,
3838 "url" : " git+https://github.com/gabrielbarth/analytics-event-factory.git"
39- },
40- "publishConfig" : {
41- "registry" : " https://npm.pkg.github.com/"
4239 }
4340}
You can’t perform that action at this time.
0 commit comments