Skip to content

Commit

Permalink
ci: try directly write .npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Jul 27, 2024
1 parent be477b2 commit 755fc8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ".npmrc"
npm publish --access public
rm ".npmrc"

0 comments on commit 755fc8a

Please sign in to comment.