Skip to content

Commit b363848

Browse files
committed
chore: add npm authentication configuration to publish workflow
1 parent 420a802 commit b363848

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
- name: Build
3232
run: bun run build
3333

34+
- name: Configure npm authentication
35+
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
36+
3437
- name: Publish
3538
run: bun publish --ignore-scripts --registry https://npm.pkg.github.com
36-
env:
37-
NPM_CONFIG_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)