Skip to content

Commit 8f3cf8e

Browse files
committed
fix: npm auth token missing
1 parent 742bbef commit 8f3cf8e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ jobs:
6262
with:
6363
registry-url: 'https://registry.npmjs.org'
6464

65+
- name: Authenticate with npm
66+
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
67+
env:
68+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
69+
6570
- name: Verify npm auth
6671
run: npm whoami --registry=https://registry.npmjs.org/
6772

0 commit comments

Comments
 (0)