Skip to content

Commit c819bea

Browse files
authored
fix(js): update publish-js workflow to work for pnpm (#1700)
Follows instructions on [this](pnpm/pnpm#3141) issues to resolve pnpm publish issue with tokens.
1 parent 55f9532 commit c819bea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-js.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
name: Install pnpm
1818
with:
1919
run_install: true
20-
- run: pnpm exec lerna run build --no-private
21-
- run: pnpm exec lerna publish from-package --no-private --no-git-tag-version --yes
20+
- name: Set publishing config
21+
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
2222
env:
2323
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
- run: pnpm exec lerna run build --no-private
25+
- run: pnpm exec lerna publish from-package --no-private --no-git-tag-version --yes

0 commit comments

Comments
 (0)