Skip to content

Commit b0f273d

Browse files
author
Disturbing
committed
fix: use setup-node built-in auth instead of manual npm config
1 parent 8b22660 commit b0f273d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ jobs:
3333
cache: "pnpm"
3434
registry-url: "https://registry.npmjs.org"
3535

36-
- name: Configure npm
36+
- name: Test npm auth
3737
run: |
38-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
39-
npm config set access public
4038
echo "Testing npm auth..."
4139
npm whoami || echo "npm auth failed!"
4240
@@ -104,7 +102,7 @@ jobs:
104102
git push origin main --tags
105103
env:
106104
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
105+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
108106

109107
- name: Create GitHub Release
110108
if: steps.changesets.outputs.has_changesets == 'true' && env.RELEASE_TAG != ''

0 commit comments

Comments
 (0)