Skip to content

Commit 4061a42

Browse files
committed
[CI] Fix npm releases with pnpm
1 parent 02b8005 commit 4061a42

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release-on-npm.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ jobs:
4040
git add .
4141
git commit -m "Update versions to ${{ env.VERSION }}"
4242
43-
- name: Publish on NPM
43+
- name: Configure NPM authentication
44+
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
4445
env:
45-
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
46+
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
47+
48+
- name: Publish on NPM
4649
run: pnpm publish --recursive --access public --no-git-checks
4750

4851
- name: Push changes

0 commit comments

Comments
 (0)