Skip to content

Commit 27e9acb

Browse files
committed
Add npm authentication step and create .npmrc for package publishing
1 parent cde070e commit 27e9acb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- name: Build package
3434
run: pnpm build
3535

36+
- name: Authenticate npm
37+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
38+
3639
- name: Publish to npm
3740
run: pnpm publish --dry-run
3841
env:

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

0 commit comments

Comments
 (0)