From ba4b2db1f201640dad5d7ee9fe68a2d0defd6047 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 8 Mar 2023 03:33:01 +0200 Subject: [PATCH] ci: fix release --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd9344035a..ccbc5be42a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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