Skip to content

Commit 84c72b6

Browse files
author
hubert
committed
chore: replace write .npmrc to npm set config
1 parent 2d73998 commit 84c72b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
git config --list
4949
- name: Authenticate with Registry
5050
run: |
51-
echo "registry=https://registry.npmjs.org/" >> .npmrc
52-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
51+
npm config set registry https://registry.npmjs.org/
52+
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
5353
npm whoami
5454
env:
5555
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)