Skip to content

Commit

Permalink
Fix npm auth in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Jun 1, 2024
1 parent 2ab5346 commit deedec0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
registry=https://registry.npmjs.org/
always-auth=true
1 change: 1 addition & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- run: nix develop --command npm run build
- run: nix develop --command npm run bundle
- run: ls -lhR dist
- run: cp .github/.npmrc .
- run: nix develop --ignore-environment --keep NODE_AUTH_TOKEN --command npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- run: nix develop --command npm run build
- run: nix develop --command npm run bundle
- run: ls -lhR dist
- run: cp .github/.npmrc .
- run: nix develop --ignore-environment --keep NODE_AUTH_TOKEN --command npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit deedec0

Please sign in to comment.