Skip to content

Commit 2870126

Browse files
committed
ensure npm token found in publish ci
1 parent 85fb0b6 commit 2870126

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
- name: Build project
3333
run: bun run build
3434

35+
- name: Setup npm authentication
36+
run: |
37+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
38+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
39+
3540
- name: Publish to npm
36-
run: bun publish
37-
env:
38-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
run: bun publish

0 commit comments

Comments
 (0)