Skip to content

Commit

Permalink
ci: fix setting auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Feb 10, 2025
1 parent 22f3780 commit 3cb03aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ jobs:
run: pnpm install
- name: Publish Packages
env:
"npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPM_TOKEN }}
run: pnpm publish
# setting the "npm_config_//registry.npmjs.org/:_authToken" env variable directly doesn't work.
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" # pnpm config set is broken
pnpm publish

0 comments on commit 3cb03aa

Please sign in to comment.