Skip to content

Commit 5e3d8ff

Browse files
author
OCWatch Dev
committed
fix(ci): write .npmrc to project root for bun publish auth
1 parent 9ce8605 commit 5e3d8ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ jobs:
3535
3636
- name: Publish to npm
3737
run: |
38-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
38+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
3939
bun publish --access public
40+
rm .npmrc
4041
env:
4142
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4243

0 commit comments

Comments
 (0)