Skip to content

Commit 0620bf7

Browse files
🔧 Configure npm authentication in release workflow
1 parent 6deddef commit 0620bf7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ jobs:
6767
require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2) + '\n');
6868
"
6969
70+
- name: Configure npm authentication
71+
run: |
72+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
73+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
74+
echo "access=public" >> ~/.npmrc
75+
7076
- name: Verify package can be packed
7177
run: |
7278
bun publish --dry-run

0 commit comments

Comments
 (0)