File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
1+ # This workflow will run tests using node and then publish packages to npmjs.org when a release is created
22# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
33
4- name : Node.js Package
4+ name : Publish to npm
55
66on :
77 release :
@@ -18,19 +18,18 @@ jobs:
1818 - run : cd templates/nextjs && yarn install --frozen-lockfile
1919 - run : cd templates/nextjs && yarn typecheck
2020
21- publish-gpr :
21+ publish-npm :
2222 needs : build
2323 runs-on : ubuntu-latest
24- permissions :
25- contents : read
26- packages : write
2724 steps :
2825 - uses : actions/checkout@v4
2926 - uses : actions/setup-node@v4
3027 with :
3128 node-version : 20
32- registry-url : https://npm.pkg.github.com /
29+ registry-url : https://registry.npmjs.org /
3330 - run : cd templates/nextjs && yarn install --frozen-lockfile
3431 - run : cd templates/nextjs && npm publish
3532 env :
36- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
33+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
34+ # Note: You need to create an NPM_TOKEN secret in your repository settings
35+ # Generate a token at https://www.npmjs.com/settings/tokens
You can’t perform that action at this time.
0 commit comments