Skip to content

Commit 47fccaf

Browse files
committed
fix(ci): create npmrc in both home and working directory
- npm needs auth token in working directory when publishing - Create .npmrc in both ~/ and project root
1 parent c7b7b8d commit 47fccaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-binaries.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@ jobs:
7474
shell: bash
7575
run: |
7676
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > ~/.npmrc
77-
chmod 600 ~/.npmrc
77+
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
78+
chmod 600 ~/.npmrc .npmrc
7879
bun scripts/publish-platform.mjs --tag latest --access public

0 commit comments

Comments
 (0)