Skip to content

Commit 64baa87

Browse files
committed
ci(release): update publish step to use NPM_TOKEN
1 parent 157daf8 commit 64baa87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242

4343
- name: Publish
4444
if: ${{ steps.release.outputs.releases_created == 'true' }}
45-
run: pnpm -r publish
45+
run: |
46+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
47+
pnpm -r --no-git-checks publish
4648
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)