Skip to content

Commit 59eea16

Browse files
committed
feat: added typescript package for release
1 parent c97dcb4 commit 59eea16

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/npm-publish-github-packages.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
on:
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

0 commit comments

Comments
 (0)