Skip to content

Commit 92fe705

Browse files
committed
Fix publish-npm.yml workflow to use auth token
1 parent bf6ea82 commit 92fe705

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish-npm.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424

2525
- uses: ./.github/actions/setup-cmux
2626

27+
# Sets up .npmrc with the auth token
28+
- uses: actions/setup-node@v4
29+
with:
30+
registry-url: 'https://registry.npmjs.org'
31+
2732
- name: Generate version file
2833
run: ./scripts/generate-version.sh
2934

@@ -43,4 +48,5 @@ jobs:
4348
4449
- name: Publish to NPM
4550
run: npm publish --tag ${{ steps.npm-tag.outputs.tag }} --provenance
46-
51+
env:
52+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)