ci: fix release

This commit is contained in:
Zoltan Kochan
2023-03-08 03:33:01 +02:00
parent ff333556d8
commit ba4b2db1f2

View File

@@ -36,8 +36,11 @@ jobs:
run: pnpm install
- name: Publish Packages
env:
"npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPM_TOKEN }}
# setting the "npm_config_//registry.npmjs.org/:_authToken" env variable directly doesn't work.
# probably "pnpm release" doesn't pass auth tokens to child processes
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" # pnpm config set is broken
pnpm release
- name: Copy Artifacts
run: pnpm run copy-artifacts