Skip to content

Commit

Permalink
fix npm auth in publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Donham committed Jul 24, 2024
1 parent 43e7668 commit 8513b31
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ jobs:
working-directory: packages/server
run: pnpm build

# see https://github.com/pnpm/pnpm/issues/3141#issuecomment-1305563972
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish to NPM
working-directory: packages/server
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8513b31

Please sign in to comment.