Skip to content

chore(release): enter changesets pre mode for 1.0 release candidates - #1695

Merged
pranavosu merged 1 commit into
mainfrom
chore/changesets-pre-rc
Nov 19, 2026
Merged

pranavosu merged 1 commit into
mainfrom
chore/changesets-pre-rc

Conversation

@pranavosu

Copy link
Copy Markdown
Collaborator

Problem

#1627 changed the rename changeset to major for all 27 packages, so the open Version Packages PR (#1244) now lists every package at 1.0.0. Merging it publishes the final 1.0.0 under latest, with no release candidate first.

Issue #, if available: none

Changes

This adds .changeset/pre.json, written by npx changeset pre enter rc:

{ "mode": "pre", "tag": "rc" }

That's the whole change. After it merges:

  1. publish-packages.yml re-runs changeset version, and chore: version packages (rc) #1244 changes from 1.0.0 to 1.0.0-rc.0 for all 27 packages, with internal dependencies at ^1.0.0-rc.0. changeset version also moves the changesets it consumes into .changeset/pre/, so later rcs and the final release still see them.
  2. Merging chore: version packages (rc) #1244 publishes with --tag rc. changeset publish reads the tag from pre.json, so the workflow doesn't change.
  3. Every later Version Packages PR is the next rc: 1.0.0-rc.1, 1.0.0-rc.2, and so on. Only packages with a new changeset, or depending on one, move to the next number.
  4. To release 1.0.0, merge a PR containing npx changeset pre exit. The next Version Packages PR is then 1.0.0, published under latest.

@aws-cdk-blocks/* and aws-cdk-blocks are new package names on npm, so the first rc is also their first publish. npm points latest at the first version of a new package, so npm install aws-cdk-blocks installs the rc until 1.0.0 ships.

Hold #1244 until this merges. If #1244 merges first, 1.0.0 goes out as latest.

Validation

  • I ran npx changeset version on this branch with main's pending changesets, then reverted it. All 27 packages came out at 1.0.0-rc.0, with 27 CHANGELOGs headed ## 1.0.0-rc.0, and pre.json stayed in pre mode with tag rc.
  • Nothing in publish-packages.yml sets latest itself. The changeset guards read only .changeset/*.md, so pre.json and .changeset/pre/ don't affect them.
  • "Require changeset" fails on this PR, as it does on every PR right now: its block-major step rejects the major entries in rename-to-aws-cdk-blocks.md, which is already on main. This PR adds no changeset.

Checklist

  • PR description included
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Adds .changeset/pre.json (mode: pre, tag: rc). The next Version Packages
PR versions the pending changesets as 1.0.0-rc.0 instead of 1.0.0, and
its merge publishes under the rc dist-tag.
@pranavosu
pranavosu requested a review from a team as a code owner November 19, 2026 17:43
@pranavosu
pranavosu enabled auto-merge (squash) November 19, 2026 17:44
@pranavosu
pranavosu disabled auto-merge November 19, 2026 17:46
@pranavosu
pranavosu merged commit e841914 into main Nov 19, 2026
11 of 19 checks passed
@pranavosu
pranavosu deleted the chore/changesets-pre-rc branch November 19, 2026 17:46
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