Skip to content

Commit 7f857be

Browse files
committed
fix: use setup-node token parameter instead of manual npmrc config
1 parent a010d20 commit 7f857be

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
with:
3030
node-version: '20'
3131
registry-url: 'https://registry.npmjs.org'
32+
token: ${{ secrets.NPM_TOKEN }}
3233

3334
- name: Install dependencies
3435
run: bun install --frozen-lockfile
@@ -56,12 +57,6 @@ jobs:
5657
zip broom-${{ steps.get_info.outputs.VERSION }}-${{ steps.get_info.outputs.COMMIT_SHORT }}.zip index.js
5758
cd ..
5859
59-
- name: Configure npm authentication
60-
run: |
61-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
62-
chmod 600 ~/.npmrc
63-
npm whoami
64-
6560
- name: Publish to npm
6661
run: npm publish --provenance --access public
6762

0 commit comments

Comments
 (0)