Skip to content

Commit 8c92f8e

Browse files
committed
ci: add npm auth via setup-node and NPM_TOKEN secret
1 parent 3d6faf8 commit 8c92f8e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
with:
2020
bun-version: latest
2121

22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: '20'
25+
registry-url: 'https://registry.npmjs.org'
26+
2227
- name: Install dependencies
2328
run: bun install
2429

@@ -47,6 +52,8 @@ jobs:
4752
- name: Publish to npm
4853
if: steps.version.outputs.changed == 'true'
4954
run: npm publish --access public
55+
env:
56+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5057

5158
- name: Create GitHub Release
5259
if: steps.version.outputs.changed == 'true'

0 commit comments

Comments
 (0)