You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CLI] Ship the v0.5.0 spec in the next CLI release and decouple spec bundling from the build #1286
The CLI bundles a copy of each protocol version's OpenAPI spec in lib/cli/lib/openapi/, and cg check spec --protocol-version can only select versions bundled there. Today that's v0.1.0 through v0.4.0. Once core v0.5.0 is released (#1268), the CLI needs a release that bundles v0.5.0.
The CLI's build script runs pnpm run typespec && tsc, and typespec recompiles the specs from the workspace copy of @common-grants/core. So any CLI build picks up the latest core spec, including one triggered by an unrelated dependency fix. If that release is labeled fix, it ships as a patch even though it adds a protocol version. This happened with the 0.4 release.
From the Oct 9 release sync with Billy.
Acceptance criteria
The next PR that touches lib/cli after core v0.5.0 is released uses a feat title, so the CLI release that ships the v0.5.0 spec is a minor release.
lib/cli/lib/openapi/openapi.0.5.0.yaml is committed, and cg check spec --protocol-version 0.5.0 works.
Decide whether to take pnpm run typespec out of the CLI build script, so bundled specs change only when someone regenerates them on purpose. If yes:
Confirm a CLI build without the step still packages the committed specs.
Document when and how to regenerate them, for example in the core release runbook.
The CLI doesn't fall several core versions behind. Releases don't need to be simultaneous.
Activity
chore(docs): update release runbooks for pnpm and hold branches (#1293)