Skip to content

release: prepare 0.2.0 (versions, package docs, PyPI publishing, preflight) - #81

Merged
akosidencio merged 4 commits into
devfrom
chore/release-v0.2.0
Nov 22, 2026
Merged

akosidencio merged 4 commits into
devfrom
chore/release-v0.2.0

Conversation

@akosidencio

Copy link
Copy Markdown
Member

Release preparation for 0.2.0: version bump, package documentation, release tooling. No feature or engine change. The code under test is the benchmarked candidate ca3dcc7 (= bf6accd) plus the docs-only PR #71.

Versions

  • Every package goes to 0.2.0 via scripts/bump-version.sh: Cargo workspace and lock, 9 npm packages, the dashboard, the Python wheel and __version__, and pub.dev.
  • New scripts/check-versions.mjs discovers every manifest and fails on mismatches, stale lockfiles, internal ranges that reject the version, or a publishable package with no publish job. It runs in CI (hygiene) and at the start of the release.
  • Go modules are an explicit source-only exception.

Release workflow

  • The tag must equal the manifests' version.
  • The five wheels are checked together, and every publish job waits for them.
  • publish-pypi uses PyPI trusted publishing (environment pypi, OIDC, attestations; no stored token).
  • workflow_dispatch runs a dry run on a branch: the whole verify phase plus a credentials preflight. It publishes nothing; publish jobs run only for a tag.

Docs

Fix

  • bench/public/scripts/validate.py derived the results directory from the workspace version, so it failed at 0.2.0.

… trusted publishing

scripts/check-versions.mjs discovers the Cargo workspace, every package.json,
pyproject.toml and pubspec.yaml and checks them against Cargo.toml
[workspace.package]: versions, lockfiles, @checkgate/* ranges, path-dependency
requirements, and that release.yml publishes each publishable package. Go
modules and private examples are explicit exceptions. It runs in CI (hygiene)
and at the start of the release.

scripts/bump-version.sh takes its npm package list from that discovery,
rewrites the checkgate-core path-dependency requirements (^0.1.0 stops
resolving at 0.2.0), updates Cargo.lock for the workspace crates only, edits
package.json version lines in place, and ends by running the check.

release.yml: the tag must equal the manifests' version; the five wheels are
checked together (verify-python) and every publish job needs it; publish-pypi
uploads them with PyPI trusted publishing (environment pypi, OIDC, PEP 740
attestations). No stored PyPI token.
…nd known limitations

release.yml gains workflow_dispatch: on a branch it runs the whole verify
phase plus a credentials preflight (npm identity and @CheckGate access,
pub.dev credentials shape, a PyPI trusted-publishing token exchange under
this workflow and the pypi environment) and publishes nothing; every publish
job now runs only for a version tag.

CHANGELOG 0.2.0: dated, Improved, Performance (dedicated-host A/B, no
regression over 10 %, core rule matching 2.7-4.6 % and weighted variants
3.0 % slower, #72/#73), Known limitations (#74-#78), supported runtimes.
Flutter CHANGELOG: real 0.2.0 entry.
…sion; record the 0.2.0 A/B

validate.py looked for docs/performance/results/v<workspace version>, so the
0.2.0 bump failed it although 0.2.0 deliberately keeps publishing the v0.1.31
figures. It now checks the newest published set and that the docs site reads
that same set.

README and the public benchmarks page summarise the dedicated-host 0.2.0 vs
v0.1.31 regression check (no regression over 10 %, core rule matching and
weighted variants 2.7-4.6 % slower; #72, #73) instead of saying 0.2.0 was not
re-benchmarked.
MCP server: standalone package page with all 14 tools (11 read, 3 proposal),
read-only default, CHECKGATE_MCP_WRITE, token scopes and server-side
approval enforcement, every environment variable with its range, stdio
client configuration with placeholder tokens, errors, exit codes and
security limits. CLI: 0.2.0 pins, accurate usage line, compatibility,
security and license sections, absolute links for npmjs.com.

Examples run from packed tarballs in a clean consumer project. Also the
docs CLI page's 0.1.31 pins and a test title that said four proposal tools.
@akosidencio
akosidencio marked this pull request as ready for review November 22, 2026 08:52
@akosidencio
akosidencio merged commit 40f537c into dev Nov 22, 2026
10 checks passed
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