Skip to content

Commit

Permalink
chore: provide npm auth token via npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Nov 7, 2022
1 parent 1554e4a commit ef0833b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ jobs:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Publish to npm
run: pnpm publish --access public
- name: Config npm
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
env:
npm_config__authtoken: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm
run: pnpm publish --access public --no-git-checks

0 comments on commit ef0833b

Please sign in to comment.