You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/operations/MCP-NPM-PUBLISHING.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,20 +32,21 @@ The workflow runs on:
32
32
-`release.published`
33
33
- manual `workflow_dispatch`
34
34
35
-
Manual runs default to dry-run mode. To publish manually, run the workflow from `main` with `publish=true`.
35
+
Manual runs default to dry-run mode. Dry-run verification does not require the `npm-publish` environment approval. To publish manually, run the workflow from `main` with `publish=true`; the live publish job waits for the `npm-publish` environment approval gate.
36
36
37
-
The workflow:
37
+
The verification job:
38
38
39
39
1. Uses GitHub-hosted `ubuntu-latest`.
40
-
2. Grants only `contents: read` and `id-token: write`.
40
+
2. Grants only `contents: read`.
41
41
3. Installs Node 24 and verifies npm is new enough for trusted publishing.
42
42
4. Installs dependencies with `pnpm install --frozen-lockfile`.
43
43
5. Builds the SDK packages.
44
44
6. Typechecks, tests, and builds the MCP package.
45
45
7. Packs the MCP package with `pnpm pack` so `workspace:*` dependencies are rewritten.
46
46
8. Validates the packed package metadata has no `workspace:*` dependencies.
47
-
9. Runs `npm publish --dry-run` unless this is a release or manual `publish=true` run.
48
-
10. Publishes with `npm publish` when live publishing is enabled.
47
+
9. Runs `npm publish --dry-run`.
48
+
49
+
The live publish job repeats the same build/test/pack validation after the environment approval, then publishes with `npm publish` using GitHub Actions OIDC.
0 commit comments