Skip to content

MR-40: one-click release for all six packages - #804

Closed
michaeljgrimm wants to merge 6 commits into
codex/mr-30-cifrom
codex/mr-40-release
Closed

michaeljgrimm wants to merge 6 commits into
codex/mr-30-cifrom
codex/mr-40-release

Conversation

@michaeljgrimm

Copy link
Copy Markdown
Contributor

MR-40 of the monorepo program (plan section 5, D6, D7, D16, D17, D19). Draft; nothing was published, tagged or pushed to main.

Base note. Based on codex/mr-30-ci as of its local head 1ccf458a (MR-30 reconciled with MR-23e and MR-31), which was not on the remote yet when this was opened, so until it is pushed this diff also shows those commits. Only the last four commits are MR-40; rebase onto the final head of codex/mr-30-ci when it lands.

What it adds

  • scripts/release.mjs (+ scripts/release-registry.mjs): prepare <version|patch|minor> (six versions, core peers, PEER_RANGES, six changelogs from changes/ with "No package changes; released with the set." for untouched packages, fragments consumed, gateVersion from MR-35 with the live stability result refuses a patch when a minor is needed, lockfile, check:versions re-check, --dry-run), pack (pnpm pack x6 + stamp-githead, digests in release-manifest.json), smoke (install the six tarballs together, render the quickstart deck, run the CLI; --registry after publish), check-publish, publish (dependency order gallery, core, render, pptx, editor, cli; explicit --tag for every package; skips versions already on npm), verify (registry manifest, gitHead, SLSA provenance source commit and npm-publish.yml on refs/tags/vX.Y.Z, subject digest, dist-tag, lockstep ranges, npm audit signatures, changelog section), notes, order.
  • .github/workflows/release.yml (dispatch: version, dry-run default true, skip-gate): plan (main, verify green for HEAD) -> gate (nightly.yml as a workflow call) in parallel with prepare (patch artifact, fails fast) -> commit and tag with the GitHub App token -> follows the publish run. A dry run dispatches npm-publish.yml with dry-run=true.
  • .github/workflows/npm-publish.yml (replaces the core-only one, same filename): starts on a v* tag (or a dispatch: dry run on any branch, real publish only on a tag = the retry path). plan, build (pack, stamp, smoke), publish (the only id-token: write; refuses any top-level workflow but npm-publish.yml), verify, release, report (release-failed issue). --tag next for prereleases.
  • check:release, check:ci-workflows now also covers both workflows (scripts/release-workflows.test.mjs), release:prepare and release:verify scripts, scripts/checks.json rules, release section of docs/release-process.md rewritten (the per-repository sections stay under a "Retired" heading), a changes/ fragment.

Deviation from the plan, on purpose

release.yml does not call npm-publish.yml as a reusable workflow. npm validates a trusted publisher against the calling workflow (docs), so release.yml would have to be the publisher on all six packages and the provenance would not name a tag. Instead release.yml pushes the tag vX.Y.Z with the App token (a GITHUB_TOKEN push would start nothing) and npm-publish.yml starts on it; this also gives provenance refs/tags/vX.Y.Z. Plan README section 5, owner-steps finding 4 and O7 are updated.

Checked

actionlint 1.7.12 clean on both workflows; check:release (24 tests), check:ci-workflows (47), check:changes, check:versions, check:stability, check:publish-source, check:candidate-gallery, check:text and pnpm check:changed pass. Locally on a full build: prepare 0.26.0-rc.0 against the live registry and the real stability gate (28 layouts, 3 themes, 14 color schemes, 89 font schemes drawn, 0 changed, minimum bump patch), pack (six tarballs, gitHead stamped), smoke (npm install of the six together, 4 slides rendered, CLI reports the version), publish --dry-run --tag next through real npm publish --dry-run for all six.

Not tested (cannot be without the owner steps)

OIDC publish and provenance (MR-41), the App-token commit, tag push and bypass, the workflow_call of nightly.yml from release.yml, gh run watch and run discovery, the verify and release jobs, the issue reporter on failure, scripts/release.mjs verify against real attestations. Nothing here ran on Actions.

For MR-34 (not deleted here)

scripts/release-train.mjs (+ test), .github/workflows/release-train.yml, .github/workflows/cli-publish.yml, release-plan.json, scripts/ci-evidence.mjs / .json (+ test), scripts/publish-source.mjs (+ test), scripts/release-prep.mjs, scripts/release-plan-cli.mjs, scripts/unreleased-gate.mjs, the scripts check:ci-evidence, check:release-train, check:publish-source, check:release-prep and their rules in scripts/checks.json; the stale changes/rr-101-release-plan-*.md fragments (they would land in the 0.26.0 changelog); docs/release-process.md sections under "Retired per-repository process".

🤖 Generated with Claude Code

@michaeljgrimm

Copy link
Copy Markdown
Contributor Author

Landed on main through #808 (merge commit 62c4b26), which carries this PR's commits unchanged.

@michaeljgrimm
michaeljgrimm deleted the codex/mr-40-release branch October 26, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant