Skip to content

fix: keep prerelease channels separate in the release plan - #636

Merged
chrispader merged 1 commit into
mainfrom
fix/release-plan-prerelease-channels
Dec 2, 2026
Merged

chrispader merged 1 commit into
mainfrom
fix/release-plan-prerelease-channels

Conversation

@chrispader

@chrispader chrispader commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

On main, the release plan picks its baseline from every tag in the 11.0 line, including the v11.0.0-nitro-v1.* tags on release/nitro-v1. Because nitro-v1 sorts after alpha, the baseline is 11.0.0-nitro-v1.2. An exact 11.0.0-alpha.1 fails the increasing-version check, and prerelease produces 11.0.0-nitro-v1.3, which would publish to the nitro-v1 channel.

Prerelease tags now count only for their own channel: the channel of the checked-out version, plus the channel of an exact version when one is given. Stable tags still count for every channel, so sibling patch releases keep preventing reuse. On main, both 11.0.0-alpha.1 and prerelease now resolve to 11.0.0-alpha.1 from v11.0.0-alpha.0, and release/nitro-v1 still resolves prerelease to 11.0.0-nitro-v1.3.

The release docs now also describe how minor and major behave on a prerelease with a nonzero minor or patch number, as CodeRabbit pointed out in #621. The code already follows semver there, and a test now covers it.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Prerelease version planning now keeps release channels separate, so each channel advances from its own tags.
    • Patch, minor, and major increments from prerelease versions now follow the version’s components: minor and major increments finish a prerelease only when the relevant lower components are zero; otherwise, they advance to the next version.
  • Documentation
    • Clarified how prerelease channels count tags and when patch, minor, and major increments finish a prerelease.

The release plan picked the highest tag in the version line, so the
11.0.0-nitro-v1.N tags from release/nitro-v1 became the baseline on main.
An exact 11.0.0-alpha.1 failed the increasing-version check and
prerelease produced 11.0.0-nitro-v1.3. Prerelease tags now count only for
their own channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-native-nitro-sqlite Ready Ready Preview Dec 2, 2026 8:03am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Release planning now filters baseline tags by prerelease channel. Distribution tags use the shared channel parser. Tests and release documentation describe channel-specific tag histories and prerelease increment behavior.

Changes: Release Channels

Layer / File(s) Summary
Channel-specific release planning
scripts/release-plan.ts, scripts/release.test.ts, docs/releases/README.md
Baseline tags are limited to stable releases and relevant prerelease channels. Tests cover separate channel histories and patch, minor, and major increments from a prerelease. Documentation describes the same increment conditions.
Distribution tag channel parsing
scripts/release-registry.ts
distributionTag uses prereleaseChannel to derive prerelease distribution tags.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to 4798d

Release planning now keeps prerelease channels separate, and the documentation matches the new behavior. No merge-blocking issue was found.

Security architecture risk: Minimal · up to 4798d

Release planning now keeps sibling prerelease channels from steering each other’s version bumps. Stable tags still count across channels, and the change preserves the existing checks for duplicate tags, release commit identity, and npm publishing authority.

Security review details

Security Blast Radius

  • inferred — The effective change is which version existing release operators can plan and which npm channel consumers may receive as a result. The PR does not add a workflow trigger, change the package set or repository target, or grant new publishing permissions.

Trust Boundaries and Controls

  • observed — Git tags, the workspace version, and the dispatch input influence the planned version. They do not confer publishing authority: publication still requires release and commit validation, and npm trusted publishing uses the workflow’s GitHub OIDC identity.

Resilience and Maintainability Implications

  • observed — The workflow retains repository-wide release serialization. On retry after a partial publish, packages already recorded for the same commit are skipped, a different commit is rejected, and pending packages are checked for the selected commit as their versions become visible. Publication remains a per-package operation, not an atomic one.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix: keep prerelease channels separate in the release plan" matches the main change. The release plan now counts prerelease tags only for the checked-out version's channel (or the exact ver…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix: keep prerelease channels separate in the release plan" matches the main change. The release plan now counts prerelease tags only for the checked-out version's channel (or the exact version's channel), so sibling channels such as nitro-v1 no longer affect alpha baselines. Stable tags still count across channels. The title is specific, concise, and names the primary behavior change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 21e02c2 and 4798d67.

Files selected for processing: 4

  • docs/releases/README.md
  • scripts/release-plan.ts
  • scripts/release-registry.ts
  • scripts/release.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@chrispader
chrispader merged commit f8c809c into main Dec 2, 2026
12 checks passed

This branch was successfully deployed

1 active deployment
Preview — 4798d676 Deployed Dec 2, 2026 by vercel[bot]
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