Skip to content

Commit d082d25

Browse files
🔧 Update npm authentication method in release workflow
1 parent 36b922c commit d082d25

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,17 @@ jobs:
6767
require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2) + '\n');
6868
"
6969
70-
- name: Configure npm authentication
71-
run: |
72-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
73-
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
74-
echo "access=public" >> ~/.npmrc
75-
7670
- name: Verify package can be packed
7771
run: |
7872
bun publish --dry-run
7973
echo "Package dry-run successful"
74+
env:
75+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_CONFIG_TOKEN }}
8076

8177
- name: Publish to npm with Bun
8278
run: bun publish --access public
8379
env:
84-
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
80+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_CONFIG_TOKEN }}
8581

8682
- name: Generate changelog
8783
id: changelog

0 commit comments

Comments
 (0)