Commit f4ed45b
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
0 commit comments