File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1- name : Publish Package to npmjs
1+ name : Publish Package to npmjs and GitHub Packages
22
33on :
44 push :
3535 run : npm publish
3636 env :
3737 NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
38+
39+ - name : Configure npm authentication for GitHub Packages
40+ run : |
41+ echo "@OWNER:registry=https://npm.pkg.github.com" >> ~/.npmrc
42+ echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
43+ env :
44+ OWNER : ${{ github.repository_owner }}
45+
46+ - name : Publish to GitHub Packages
47+ run : npm publish --registry https://npm.pkg.github.com/
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/"
3942 }
4043}
You can’t perform that action at this time.
0 commit comments