Skip to content

Commit 11a0516

Browse files
chore: use npm trusted publishing with OIDC
Replace NPM_TOKEN with OIDC-based trusted publishing. Requires Node.js 24 for npm >= 11.5.1 support. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 19bb266 commit 11a0516

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/release-mcp.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Node.js
4343
uses: actions/setup-node@v4
4444
with:
45-
node-version: "20"
45+
node-version: "24"
4646
registry-url: "https://registry.npmjs.org"
4747

4848
- name: Calculate new version
@@ -148,11 +148,9 @@ jobs:
148148
run: yarn workspace @sourcebot/mcp build
149149

150150
- name: Publish to npm
151-
env:
152-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
153151
run: |
154152
cd packages/mcp
155-
npm publish --access public
153+
npm publish --provenance --access public
156154
157155
- name: Fast-forward main to temporary branch
158156
env:

0 commit comments

Comments
 (0)