Skip to content

Commit 3112aaf

Browse files
committed
build: add npm token for lerna publish
1 parent daa2b48 commit 3112aaf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ jobs:
9393
- name: Build and Publish
9494
# if: steps.tag_check.outputs.exists_tag == 'false'
9595
run: |
96-
npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
97-
npm whoami
96+
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
9897
npm i --no-save
9998
lerna publish ${{ env.CURRENT_VERSION }} --force-publish --no-git-tag-version --yes
99+
env:
100+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)