Repository navigation
ci(release): auto-publish 2.0.0 release candidates from the 2.0.0 branch - #8013
Closed
tylerslaton wants to merge 2 commits into
Closed
tylerslaton wants to merge 2 commits into
tylerslaton wants to merge 2 commits into
Conversation
…nches A branch named for a version (e.g. 2.0.0) now publishes the monorepo scope as <version>-rc.N under the rc dist-tag whenever a merge touches packages/. rc.yml calls canary.yml, which dispatches publish-release.yml, so the single npm OIDC entry point is unchanged. The RC number comes from what npm already holds across every package in the scope, so it needs no repo state. The prerelease lane now takes its dist-tag from the version's prerelease id (canary stays canary) and refuses to publish a stable version. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PR CI filtered on branches: [main], so PRs into 2.0.0 merged untested, and each merge there now publishes an RC. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
tylerslaton
requested review from
jpr5,
marthakelly,
mme and
ranst91
as code owners
October 26, 2026 21:17
Contributor
|
Caution Review failedThe pull request is closed. Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
Author
|
Shelving RC auto-publishing for now. The PR-CI part moved to its own PR. |
Contributor
|
Size Change: 0 B Total Size: 1.88 MB ℹ️ View Unchanged
|
BenTaylorDev
added a commit
that referenced
this pull request
Oct 29, 2026
17 PR workflows filter on `branches: [main]`, so PRs into the new `2.0.0` branch merge with no CI. This adds `"[0-9]+.[0-9]+.[0-9]+"` to each of those `pull_request` filters so release-line branches get the same checks as `main`. Push triggers, deploy, and release workflows are untouched. Note: `intelligence-runtimes.yml` is one of the 17 and is CODEOWNERS-gated. Replaces #8013, which also added RC auto-publishing; that part is shelved for now. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * Automated checks and tests now also run for pull requests targeting branches with three-part numeric version names, in addition to `main`. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
naicud
pushed a commit
to naicud/CopilotKit
that referenced
this pull request
Oct 29, 2026
A branch named for a version (e.g. 2.0.0) now publishes the monorepo scope as <version>-rc.N whenever a merge touches packages/. Users follow the line with `npm i @copilotkit/react-core@next`, as agreed in the 2.0 kickoff. rc.yml calls canary.yml, which dispatches publish-release.yml, so the single npm OIDC entry point is unchanged. The RC number comes from what npm already holds across every package in the scope, so it needs no repo state and a half-published run cannot collide. The prerelease lane now picks its dist-tag from the version: release candidates go to next, every other prerelease to its identifier (canary stays canary). It refuses to publish a stable version. The version keeps the rc identifier because 2.0.0-next.1 is already taken on npm from an earlier 2.0 attempt. Based on the prototype in CopilotKit#8013. PR checks for release-line branches are in CopilotKit#8015. Refs PE-1089
naicud
pushed a commit
to naicud/CopilotKit
that referenced
this pull request
Oct 29, 2026
…CopilotKit#8077) Closes PE-1089. Every merge into a release-line branch (e.g. `2.0.0`) that touches `packages/` publishes the monorepo scope as `2.0.0-rc.N` under the `next` dist-tag, as agreed in the 2.0 kickoff. Users follow it with `npm i @copilotkit/react-core@next`. Built on Tyler's prototype from CopilotKit#8013, with one change: release candidates publish under `next` instead of `rc`. The version keeps the `rc` identifier because `2.0.0-next.1` is already taken on npm. - `rc.yml` calls `canary.yml`, which dispatches `publish-release.yml`, so the npm trusted-publisher entry point stays the same. - The RC number is one past the highest `2.0.0-rc.*` any package in the scope has on npm. No repo state, no collisions after a half-published run. - The prerelease lane refuses to publish a stable version. ## Verified locally - Release suite: 268 passed - `bump-prerelease.ts --scope monorepo --rc 2.0.0` against live npm → `2.0.0-rc.0` for all 18 packages, then `prerelease.ts --dry-run` → dist-tag `next` - oxlint / oxfmt clean, release scope dropdown check passes Not run locally: actionlint (runs in CI), a real run on GitHub. ## Before the first RC 1. Merge CopilotKit#8015, so PRs into `2.0.0` get CI. 2. Merge `main` into `2.0.0`, so the branch has these workflows. 3. Add a ruleset for `2.0.0` (PE-1082). From step 2 on, every push to it that touches `packages/` publishes to npm. 4. Dispatch `release / rc` on `2.0.0` with `dry_run`, then for real. ## Needs a decision - The existing `next` tag points at `1.55.2-next.1` and gets moved to the 2.0 RCs. OK? - All 18 monorepo packages ship as RCs, including vue and react-native. The kickoff said React only. I read that as where 2.0 work goes, not what gets published. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added support for publishing release candidates from versioned release lines. Candidate versions advance to the next available `rc.N` number and are published with the `next` tag. * Package changes on versioned release lines can trigger candidate publishing automatically. Candidates can also be triggered manually, with an option to run without publishing. * **Bug Fixes** * Invalid release-candidate versions, bases that are not ahead of the current release, and incompatible release options are rejected before publishing. Canary releases continue to use the `canary` tag. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Makes
2.0.0(and any future branch namedX.Y.Z) a release line:release / rc(.github/workflows/rc.yml): on every push to a release-line branch that touchespackages/**, publish the monorepo scope as2.0.0-rc.Nunder thercdist-tag. Merges that only touch docs, showcase, or CI publish nothing. Retry/dry-run viaworkflow_dispatchon the branch.canary.yml(now alsoworkflow_call), which dispatchespublish-release.ymlexactly like a canary, so the single OIDC trusted-publisher binding is untouched.bump-prerelease.ts --rc 2.0.0reads every monorepo package's versions from npm and picks one past the highest2.0.0-rc.*, so a half-published run can't cause a collision. It refuses once2.0.0itself is on npm.prerelease.tspublishes under the version's prerelease id (canary→canary,rc→rc) and now refuses to publish a stable version from the prerelease lane.branches: [main], so PRs into2.0.0merged with no CI. They now also match[0-9]+.[0-9]+.[0-9]+.Verified locally
vitestrelease suite: 267 passed (new tests forcomputeNextRcVersion,prereleaseDistTag)bump-prerelease.ts --scope monorepo --rc 2.0.0against live npm →2.0.0-rc.0across 18 packages;prerelease.ts --dry-run→ dist-tagrc--rc 1.80.0(already released),--rc main,--scope all --rc, and--rc+--suffixall exit 11.80.1-canary.test, dist-tagcanaryactionlintclean;verify-release-scope-dropdowns.shpassesBefore the first RC
2.0.0must contain this change: mergemaininto2.0.0once this lands.npmenvironment requires a reviewer (jpr5), so every RC waits on that approval like canaries do.2.0.0has no ruleset yet (PROTECT_OUR_MAINonly covers the default branch).🤖 Generated with Claude Code