Skip to content

Commit

Permalink
build: add npm token for lerna publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bassemsab committed Jan 29, 2024
1 parent daa2b48 commit 3112aaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ jobs:
- name: Build and Publish
# if: steps.tag_check.outputs.exists_tag == 'false'
run: |
npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
npm whoami
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
npm i --no-save
lerna publish ${{ env.CURRENT_VERSION }} --force-publish --no-git-tag-version --yes
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 3112aaf

Please sign in to comment.