Skip to content

Commit 3cb03aa

Browse files
committed
ci: fix setting auth token
1 parent 22f3780 commit 3cb03aa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@ jobs:
2525
run: pnpm install
2626
- name: Publish Packages
2727
env:
28-
"npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPM_TOKEN }}
29-
run: pnpm publish
28+
# setting the "npm_config_//registry.npmjs.org/:_authToken" env variable directly doesn't work.
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
run: |
31+
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" # pnpm config set is broken
32+
pnpm publish

0 commit comments

Comments
 (0)