Skip to content

Commit f2f5407

Browse files
committed
Manual release trigger for GH repo
PL-403 PL-475
1 parent 7373b11 commit f2f5407

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)