Skip to content

Commit 4323907

Browse files
committed
ci: configure npm provenance publishing with OIDC token
Switch from NPM_TOKEN secret to id-token OIDC permission for npm provenance support. Add Node.js setup step with registry configuration.
1 parent 6a32e21 commit 4323907

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions:
99
contents: write
1010
issues: write
1111
pull-requests: write
12+
id-token: write
1213

1314
jobs:
1415
build:
@@ -35,10 +36,18 @@ jobs:
3536
- name: Test
3637
run: bun test
3738

39+
- name: Setup Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: lts/*
43+
registry-url: https://registry.npmjs.org
44+
45+
- name: Update npm
46+
run: npm install -g npm@latest
47+
3848
- name: Release
3949
if: github.ref == 'refs/heads/main'
4050
env:
4151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4352
run: npx semantic-release
4453

0 commit comments

Comments
 (0)