Skip to content

Commit 0cb964c

Browse files
committed
ci: fix npm access
1 parent 8e04aa1 commit 0cb964c

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
@@ -30,13 +30,15 @@ jobs:
3030
with:
3131
release-type: node
3232

33+
- run: 'echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > ~/.npmrc'
34+
if: ${{ steps.release.outputs.release_created }}
35+
3336
- name: Install dependencies
3437
run: pnpm i --frozen-lockfile
38+
if: ${{ steps.release.outputs.release_created }}
3539

3640
- run: pnpm build
3741
if: ${{ steps.release.outputs.release_created }}
3842

3943
- run: pnpm publish --access public --no-git-checks
40-
env:
41-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4244
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)