Skip to content

Commit

Permalink
fix(js): update publish-js workflow to work for pnpm (#1700)
Browse files Browse the repository at this point in the history
Follows instructions on [this](pnpm/pnpm#3141)
issues to resolve pnpm publish issue with tokens.
  • Loading branch information
ali-bahjati committed Jun 14, 2024
1 parent 55f9532 commit c819bea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
name: Install pnpm
with:
run_install: true
- run: pnpm exec lerna run build --no-private
- run: pnpm exec lerna publish from-package --no-private --no-git-tag-version --yes
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm exec lerna run build --no-private
- run: pnpm exec lerna publish from-package --no-private --no-git-tag-version --yes

0 comments on commit c819bea

Please sign in to comment.