Skip to content

Commit

Permalink
Fix publish token
Browse files Browse the repository at this point in the history
  • Loading branch information
romeovs committed Sep 1, 2023
1 parent 19fb93f commit a0f4eba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,10 @@ jobs:
- name: Audit code
run: pnpm audit signatures
- name: Authenticate to npm
run: echo '//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}' >> .npmrc
run: pnpm config set '//registry.npmjs.org/:_authToken' '${{ secrets.NPM_TOKEN}}'
- name: Publish package (dry run)
run: pnpm publish --dry-run --ignore-scripts --no-git-checks
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish package
run: pnpm publish --ignore-scripts --no-git-checks
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a0f4eba

Please sign in to comment.