We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7373b11 commit f2f5407Copy full SHA for f2f5407
.github/workflows/release-to-github.yaml
@@ -0,0 +1,21 @@
1
+name: Node.js Publish to GitHub Packages
2
+on:
3
+ workflow_dispatch: # Manual trigger
4
+jobs:
5
+ build:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v4
9
+ # Setup .npmrc file to publish to GitHub Packages
10
+ - uses: actions/setup-node@v4
11
+ with:
12
+ node-version: '22.x'
13
+ # Switch registry to GitHub Packages
14
+ registry-url: 'https://npm.pkg.github.com'
15
+ # Specify the scope for GitHub packages
16
+ scope: '@${{ github.repository_owner }}'
17
+ - run: npm ci
18
+ - run: npm publish
19
+ env:
20
+ # GitHub token instead of NPM token
21
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments