Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 3.43 KB

RELEASING.md

File metadata and controls

51 lines (39 loc) · 3.43 KB

Releasing TanStack CMS

Releases are cut by Changesets from CI. Every @tanstack/cms-* package is versioned together (a fixed group in .changeset/config.json), so one version number describes the whole CMS.

Day to day

  1. A PR that changes a published package adds a changeset: pnpm changeset, pick the packages, the bump, and write the release note for users (what changed and what they need to do).
  2. When PRs land on main, the Release workflow opens (or updates) a "ci: Version Packages" PR that applies the pending changesets.
  3. Merging that PR publishes to npm and comments on the released PRs.

The Release workflow runs the full test suite (pnpm test:ci) and the packed-tarball consumer test (pnpm test:pack) before it publishes. PRs also run the Playwright suite (pnpm test:e2e) and the coverage gate; main runs the store benchmarks with their latency budgets.

The road to 1.0

The repo is in Changesets pre-release mode (.changeset/pre.json), so merges publish 1.0.0-alpha.N under the alpha npm tag. Move through the stages by changing the pre-release tag in a PR:

Stage Command Published as Exit criteria
alpha pnpm changeset pre enter alpha (done) 1.0.0-alpha.N on alpha APIs may still change. The migration examples and early adopters are on it.
beta pnpm changeset pre exit && pnpm changeset pre enter beta 1.0.0-beta.N on beta API frozen: no breaking changes without a documented reason. Feedback from the Payload, Starlight, EmDash, and WordPress migration users is triaged.
rc pnpm changeset pre exit && pnpm changeset pre enter rc 1.0.0-rc.N on rc Only fixes. Deployment guide verified on Node, Docker, Turso, and S3/R2.
1.0 pnpm changeset pre exit 1.0.0 on latest No open release blockers for two weeks of rc.

Before leaving rc, tag the release (v1.0.0) and publish the support policy below on the docs site (it lives in docs/deployment/upgrading.md).

What counts as a breaking change

The public API is everything exported from a package entry point listed in its package.json exports, the defineCms config shape, the HTTP API under /api/cms/v1 (paths, inputs, outputs, error codes), the CLI commands and flags, and the storage schema (migrations only move forward and run automatically).

Not covered:

  • Exports prefixed unstable_ (the on-page editor and WebMCP) can change in a minor release.
  • Admin UI markup and styling, admin message wording, and anything under /routes/* that an app has not overridden.
  • Internal storage tables and columns, beyond "a newer version can always open and migrate an older database".