Skip to content

Commit

Permalink
ci: config set npm
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Apr 9, 2024
1 parent eaba953 commit e6037fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish_package_to_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
run: pnpm install

- name: Publish to NPM
run: pnpm publish --no-git-checks
run: |
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" # pnpm config set is broken
pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# setting the "npm_config_//registry.npmjs.org/:_authToken" env variable directly doesn't work.
# probably "pnpm release" doesn't pass auth tokens to child processes
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit e6037fa

Please sign in to comment.