Skip to content

Commit 495e00c

Browse files
committed
Publish with the NPM CLI
1 parent 58a48c1 commit 495e00c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Build
4949
run: yarn build
50+
- name: Set up NPM authentication
51+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
5052
- name: Publish
51-
run: yarn publish --access public --no-git-tag-version --tag latest
52-
env:
53-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53+
run: npm publish --access public --no-git-tag-version --tag latest

0 commit comments

Comments
 (0)