Skip to content

Commit f4ed45b

Browse files
alistair3149claude
andcommitted
Switch npm publish to trusted publishing
Removes the long-lived NPM_MCP_WRITE token in favour of OIDC-based trusted publishing. GitHub's id-token vouches for the workflow run and npm exchanges that for a short-lived publish token, so there is no shared secret to rotate. - Bumps Node from 22 to 24 in both workflows. Node 24 is the active LTS and ships with npm 11, which is required for trusted publishing. Bumping CI alongside release keeps the build environments aligned, so Node-24-specific failures surface in CI rather than at release time. - Drops NODE_AUTH_TOKEN from the publish step. The id-token: write permission is already set for provenance and MCP Registry OIDC. The trusted publisher must be configured on npmjs.com for @professional-wiki/mediawiki-mcp-server with this repository and release.yml as the source. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6cf6b3e commit f4ed45b

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- uses: actions/setup-node@v6
1616
with:
17-
node-version: 22
17+
node-version: 24
1818
cache: 'npm'
1919

2020
- name: Run preflight checks

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Node.js
1919
uses: actions/setup-node@v6
2020
with:
21-
node-version: '22'
21+
node-version: '24'
2222
registry-url: 'https://registry.npmjs.org/'
2323

2424
- name: Run preversion checks
@@ -32,8 +32,6 @@ jobs:
3232

3333
- name: Publish to npm
3434
run: npm publish --provenance --access public
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_MCP_WRITE }}
3735

3836
- name: Update server.json (npm)
3937
run: node scripts/update-server-json-npm.cjs

0 commit comments

Comments
 (0)