Skip to content

Commit 9604cb7

Browse files
committed
Update publish.yml
1 parent 0d25dd0 commit 9604cb7

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
@@ -33,11 +33,14 @@ jobs:
3333
- name: Run tests
3434
run: bun test
3535

36-
- name: Login to npm
36+
- name: Verify NPM login
3737
run: |
38-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
38+
npm config list
39+
npm whoami
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3942

4043
- name: Publish to NPM
4144
run: bun run publish
4245
env:
43-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)