Releases run in standing-PR mode with sync versioning; the standing release PR lives on release/next.
Violating these breaks releases.
- Three-stage pipeline version → notes → publish.
VersionOutput(packages/core/src/types.ts) is the JSON contract between stages and is persisted in standing-PR manifests — new fields must be optional; consumers must tolerate their absence (old manifests live in open PRs). - Roll-forward in standing-PR mode the version bump is on
mainbefore publishing. In direct batch mode it is not pushed until every publish succeeds. Tags are created locally before publishing and pushed after a clean publish (once at the end in batch mode, after each package in per-package mode). A failed publish is never recovered by reverting commits or by deleting a tag whose version was published. Already-published versions are skipped on retry. Seedocs/architecture.md. - Release-commit prefix subjects starting with
chore: releasematchrelease.ci.skipPatternsand suppress standing-PR update runs. Keep the prefix on release commits; nothing else may use it. [skip ci]asymmetry the direct-release commit onmain(version.commitMessage) includes it to stop CI loops — leave it. The standing-PR branch's prep commit must NOT: a squash merge inherits its message, and[skip ci]onmainwould suppress the publish workflow.- Marker comments every bot comment is keyed by a distinct HTML marker and posted idempotently (update-in-place). Machine state uses its own marker line — never parse the human prose.
- Workflow
ifguards can't read config label names in workflow guards are hardcoded defaults; in-step checks againstreleasekit.config.jsonare authoritative.
Design decisions are recorded in docs/adr/ — check there before reworking a load-bearing choice.
- Before you push: run
pnpm lint,pnpm typecheckandpnpm test. The commit hook only checks staged files, and nothing runs on push.pnpm testskips@releasekit/version's and@releasekit/release's owntest/integration/; runpnpm --filter @releasekit/version test:integrationwhen you change the version CLI, andpnpm --filter @releasekit/release test:integration(the standing-PR lifecycle model) when you change the standing-PR flow.RELEASEKIT_MODEL_RUNSsets the model's run count andRELEASEKIT_MODEL_KNOWN_BUGS=#799enables the commands flaggedknownBug: '#799'; a failure prints the variables that replay it. - One package:
pnpm --filter <package> testortypecheckskips Turborepo, so it runs against the dependencies' builtdist/, which may be stale. Build them first withpnpm turbo run build --filter=<package>^.... - Lint: a package's own
lintscript is Biome only;pnpm lintalso runs ESLint. - CI-only suites:
pnpm testdoesn't run the action harness (test:action:*,test:harness:*),scripts/test-e2e.tsorscripts/test-packages.ts. Run them when you change a CLI,action.ymlor what a package ships. - Live tests: integration tests that call a real service, such as
packages/notes/test/integration/ollama-live.spec.ts, skip unless their opt-in variable is set; CI runs them in the Live Tests job. A new one needs a step in_ci-live.reusable.yml, any new secret declared there and passed fromci.yml, and its package's paths in Detect Changes'livefilter.
- Turborepo runs tasks in strict env mode, so a variable that
turbo.jsondoesn't declare never reaches the task. Opt-in switches such asRELEASEKIT_NOTES_LIVE=1work throughpnpm --filter @releasekit/notes test, not throughpnpm test. - When Vitest detects a coding agent it switches to a terse reporter that hides console output and passing tests; add
--reporter=defaultto see them. Runs through Turborepo keep the default reporter, because strict env mode drops the variables Vitest detects. - Don't put a worktree under
.claude/, where Claude Code creates them by default. Biome ignores.claudepaths, sopnpm lintthere finds no files and fails.
- Test new behaviour through the path a user hits, such as a CLI command or a package's exported API, not only the helper underneath.
- A PR that adds a
VersionOutputor standing-PR manifest field adds a manifest carrying it topackages/release/test/fixtures/manifests/: hand-built until a release has written a real one, then replaced by it. - Default to no comment. Write one only when the why isn't clear from the code: a hidden constraint, a workaround, behaviour that would surprise a reader. Don't repeat the code, a JSDoc or a nearby comment, and don't narrate.