Skip to content

mono - chore: release concurrency group + v5 staged publishing docs - #2124

Merged
jaredwray merged 3 commits into
mainfrom
claude/npm-staging-v5-releases-d7a5sq-main
Sep 12, 2026
Merged

jaredwray merged 3 commits into
mainfrom
claude/npm-staging-v5-releases-d7a5sq-main

Conversation

@jaredwray

@jaredwray jaredwray commented Sep 8, 2026 •

Copy link
Copy Markdown
Owner

Please check if the PR fulfills these requirements

  • Followed the Contributing and Code of Conduct guidelines.
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage. — Docs and a workflow concurrency block only; no runtime code.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Chore / docs — the small main follow-up to #2119, which moves the v5 maintenance line to npm staged publishing with provenance. Nothing about how v6 is released changes.

Changes

  • .github/workflows/release.yaml: add concurrency: { group: release, cancel-in-progress: false }. The v5 branch's release workflow already uses this group, so the two release lines can never stage at the same time (the v5 script re-verifies the registry before each stage, but not overlapping at all is simpler).
  • CONTRIBUTING.md: new Release Process section covering both lines side by side — how v6 is released from main (release PR + pnpm version:sync, GitHub Release triggers the workflow), how v5 is released from the v5 branch (release PR with per-package bumps, manual Run workflow from v5, only packages ahead of npm are staged), and how staged versions are approved with 2FA (pnpm stage list / view / approve / reject, in dependency order, promptly). The same section lands on the v5 branch in mono - feat: stage v5 releases to npm with provenance #2119.
  • DEFENSE_IN_DEPTH.md §5: record that the v5 line stages through the same release.yaml / release environment stage-only trusted publisher (manual workflow_dispatch from v5 only; no direct publish), and add the open manual item for @keyv/serialize — that package exists only on v5, so main's trusted-publisher setup does not cover it.
  • website/site/docs/migration/versioning.md: a short "How releases are published" section — staged publishing + provenance on both lines; v6 from a GitHub Release, v5 by a manual run from the v5 branch (only packages ahead of npm are staged); the optional v5-YYYY-MM-DD GitHub Release is release notes only.

Why nothing else is needed on main for v5

The Actions "Run workflow" button is listed because main's release.yaml has workflow_dispatch; choosing "Use workflow from: v5" runs the v5 branch's own release.yaml. Both files share the filename and the release environment, so one npm trusted-publisher configuration covers both lines — no v5-release.yaml on main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WMpisqNVgPSHdo5CdGwwSN

Follow-up to the v5 branch's move to npm staged publishing (#2119):

- release.yaml: add `concurrency: { group: release, cancel-in-progress:
  false }`. The v5 branch's release workflow uses the same group, so the
  two release lines never stage at the same time.
- DEFENSE_IN_DEPTH.md §5: record that the v5 line stages through the same
  `release.yaml` / `release` environment trusted publisher (manual dispatch
  only), and add the open manual item for `@keyv/serialize`, which exists
  only on v5 and is not covered by main's trusted-publisher setup.
- versioning.md: short "How releases are published" section (staged
  publishing + provenance on both lines; v6 from a GitHub Release, v5 by a
  manual run from the `v5` branch; the optional `v5-YYYY-MM-DD` GitHub
  Release is notes only).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WMpisqNVgPSHdo5CdGwwSN
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T18:27:43.350956Z ca95984 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (00a48ba) to head (39b6e7e).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2124   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           55        55           
  Lines         5281      5281           
  Branches       857       863    +6     
=========================================
  Hits          5281      5281           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ca9598408e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/release.yaml
Comment thread website/site/docs/migration/versioning.md Outdated
Documents how both lines release: staged publishing with OIDC trusted
publishing and provenance on main (GitHub Release trigger, synced
versions) and on the v5 branch (manual workflow_dispatch from v5,
independent versions, only packages ahead of npm are staged), plus how
staged versions are approved with 2FA.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WMpisqNVgPSHdo5CdGwwSN
…on main

Review follow-ups:

- The release concurrency group sets `queue: max` so every queued release
  stays pending in FIFO order instead of GitHub's default single pending run,
  where a newly queued release cancels the one already waiting.
- The publish job now refuses a `release` event whose tagged commit is not on
  main (full-history checkout + `git merge-base --is-ancestor`). The workflow
  file that runs for a GitHub Release is the one at the tagged commit, so a
  tag on the v5 branch runs v5's dispatch-only workflow rather than this one;
  the guard makes the "a v5-YYYY-MM-DD release-notes tag publishes nothing"
  claim hold regardless.
- CONTRIBUTING.md, versioning.md and DEFENSE_IN_DEPTH.md updated to match,
  including the documented new-package exception (a brand-new package cannot
  be staged; a maintainer creates it by hand once, then adds its stage-only
  trusted publisher).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WMpisqNVgPSHdo5CdGwwSN
@jaredwray
jaredwray merged commit a3404d3 into main Sep 12, 2026
16 checks passed
@jaredwray
jaredwray deleted the claude/npm-staging-v5-releases-d7a5sq-main branch September 12, 2026 16:43
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.

2 participants