Releasing zdev
Push a version tag after running scripts/check-release.sh vMAJOR.MINOR.PATCH.
Prepare the Cargo, lockfile, and Codex plugin versions together, and give the
changelog entry its release date before tagging. The gate compiles the
extracted Cargo package’s tests and installs that package before running the
standalone smoke test using scripted workers and local CLI and Git fixtures,
with no LLM calls. Also run the report generator’s local test command from
Contributing when qualifying a release.
The Release workflow builds and checks the binaries, creates the GitHub
release, and calls publish-crates.yml to publish the same tag to crates.io.
Prereleases are excluded from crates.io publishing. A publishing failure fails
the Release workflow, while an already-published version is skipped on retry.
Authentication
Section titled “Authentication”Publishing uses crates.io Trusted Publishing.
In the zdev crate settings, configure
GitHub publishers for repository owner zayenz, repository zdev, and these
workflow filenames, with no environment:
release.yml, for automatic releases through the reusable workflow.publish-crates.yml, for manually publishing an existing release.
crates.io verifies the calling workflow filename, so no permanent API token or GitHub repository secret is needed.
Publish or retry an existing release
Section titled “Publish or retry an existing release”With the workflows on main, run:
gh workflow run publish-crates.yml --ref main -f tag=v1.6.0This checks out the tag, confirms a stable published GitHub release and matching Cargo version, verifies the package, and publishes it. Pass another stable release tag to retry a failed publication.
Updating the release workflow
Section titled “Updating the release workflow”Edit dist-workspace.toml, then run scripts/sync-release-workflow.sh to
regenerate release.yml and apply the repository’s hardening patch. Run
scripts/sync-release-workflow.sh --check to verify it is current.