How to release¶
A version is released by pushing its tag.
- On a branch, bump every version (the crate, the Python and Node packages,
the lockfiles' own packages, and the versions named in the docs), run
node clients/node/scripts/platform-packages.mjs pinso the Node package depends on the same version of its platform bindings, and adddocs/releases/MAJOR.MINOR.PATCH.md. Merge it intomainwith a pull request. - Tag the merge commit on
mainand push the tag:
The tag starts the Release workflow (.github/workflows/publish-python.yml):
- It refuses a tag without release notes, whose documentation does not
build with
mkdocs build --strict, or whose Node package version does not match the tag. - It builds and tests the Python wheels on Linux, macOS and Windows, and publishes them to PyPI.
- It builds the Node.js native binding on each supported platform (Linux x64
and arm64, macOS x64 and arm64, Windows x64), runs a command through it,
publishes each as
@rooagi/agent-supervisor-<platform>, and then publishes@rooagi/agent-supervisor, which lists them as optional dependencies. - It creates the GitHub Release "Agent Supervisor MAJOR.MINOR.PATCH" with the release notes as its text.
- It deploys the documentation site built from the tag.
If any step fails, the later ones do not run; fix the cause and rerun the
workflow, or run it by hand with the tag as release_tag. Files PyPI already
has, npm versions already published, and an existing GitHub Release are
skipped, so a rerun is safe.
Publishing to npm uses the repository's AGENTSUPERVISOR_TOKEN Actions
secret: an npm automation (or granular publish) token for an account that can
publish to the @rooagi scope. Packages are published
with provenance, linking each version to the workflow run that built it.
Pull requests and pushes to main only check that the documentation builds;
the published site changes with releases, so it always describes the latest
released version. To redeploy it, run the docs workflow by hand with a release
tag as ref.