This SDK is versioned independently of the otari gateway, with its own semver. Releases are automated with release-please.
- Merge changes to
mainusing Conventional Commits (feat:,fix:, etc.). This includes the gateway codegen's regeneration PRs and ordinary shell PRs. - release-please opens or updates a single release PR that bumps the version
in
Cargo.toml([package].version) and writesCHANGELOG.md. - Review and merge the release PR. That tags the release and creates a GitHub Release.
- The same workflow run (
.github/workflows/release-please.yml, gated onrelease_created) runs the tests and publishes the crate to crates.io.
- Registry: crates.io (
otari). - Auth:
CARGO_REGISTRY_TOKENrepository secret. - Version file:
Cargo.toml[package].version(release-please owns it; do not edit it by hand).Cargo.lockis gitignored, socargo publishruns without--allow-dirty.
- Enable Settings to Actions: "Allow GitHub Actions to create and approve pull requests" so release-please can open its release PR.
- Store the
CARGO_REGISTRY_TOKENsecret (a crates.io API token with publish rights for theotaricrate).
The release tag and GitHub Release already exist, so re-run the failed
Publish to crates.io job from the Actions tab to retry publishing the same
version. Avoid cutting a release by hand; the automated path keeps Cargo.toml,
the tag, and the changelog in sync.
See the gateway's SDK release coordination and compatibility for the cross-repo policy, the spec-version model, and the end-to-end flow.