Skip to content

Use Changesets for stable releases from maintenance/v1 - #832

Merged
roncohen merged 1 commit into
maintenance/v1from
ci/changesets-v1
Nov 27, 2026
Merged

roncohen merged 1 commit into
maintenance/v1from
ci/changesets-v1

Conversation

@roncohen

Copy link
Copy Markdown
Contributor

What changes

Use the normal Changesets Version Packages (v1) PR to maintain stable packages from maintenance/v1. This replaces the CLI-only workflow on that branch. The workflow uses publish.yml, the same filename as the existing trusted publisher. It does not change main or its prerelease flow.

  • Changesets versions packages, updates changelogs and the lockfile, and adds the versions to releases/v1.json for review. The plan carries forward CLI 1.0.5, which was already versioned and has not been published.
  • CI compares the reviewed plan to the registry. It fails if another public workspace version would be published, or if a planned unpublished version is not the next stable patch after that package's latest.
  • Live publication is off unless V1_PUBLISH_ENABLED is true. Only a push to the current, protected maintenance/v1 head can use the npm-v1-release environment to run changeset publish --tag latest. PR runs and the job that generates the version PR have no npm publishing permission.

First release

Merging this setup should open Version Packages (v1). Review its release plan: @reflag/[email protected], @reflag/[email protected], and @reflag/[email protected]. The provider patch includes its Node SDK dependency update.

Before enabling live publication, establish the release approval record, restrict npm-v1-release to maintenance/v1, verify npm trusts this workflow for each package, and remove the temporary CLI v1 publisher from main. After publishing, check that each latest moved to the listed version and that next is unchanged. A registry maintainer can restore the previous latest tags if needed; do not change next.

Verification

  • Ran the version command on a clean checkout. It generated exactly the three versions above and updated the provider's Node SDK dependency to 1.8.4. The registry check accepted exactly that plan.
  • All 361 tests across the three release packages and six release guard tests passed, as did the three builds, lint, formatting, and actionlint.
  • No package was published, and no repository or npm settings were changed.

@reflag-review reflag-review 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.

Risk: high

no actionable findings

@roncohen
roncohen enabled auto-merge (squash) November 27, 2026 12:29
@roncohen
roncohen disabled auto-merge November 27, 2026 12:29
@roncohen
roncohen enabled auto-merge (squash) November 27, 2026 12:30
@roncohen
roncohen merged commit b694e37 into maintenance/v1 Nov 27, 2026
10 checks passed
@roncohen
roncohen deleted the ci/changesets-v1 branch November 27, 2026 12:30
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