Sfoglia il codice sorgente

fix(js): update publish-js workflow to work for pnpm (#1700)

Follows instructions on [this](https://github.com/pnpm/pnpm/issues/3141)
issues to resolve pnpm publish issue with tokens.
Ali Behjati 1 anno fa
parent
commit
c819beab0e
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4 2
      .github/workflows/publish-js.yml

+ 4 - 2
.github/workflows/publish-js.yml

@@ -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