Skip to content

How to release

A version is released by pushing its tag.

  1. 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 pin so the Node package depends on the same version of its platform bindings, and add docs/releases/MAJOR.MINOR.PATCH.md. Merge it into main with a pull request.
  2. Tag the merge commit on main and push the tag:
git tag -a v0.3.6 -m "Agent Supervisor v0.3.6" <merge-commit>
git push origin v0.3.6

The tag starts the Release workflow (.github/workflows/publish-python.yml):

  1. 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.
  2. It builds and tests the Python wheels on Linux, macOS and Windows, and publishes them to PyPI.
  3. 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.
  4. It creates the GitHub Release "Agent Supervisor MAJOR.MINOR.PATCH" with the release notes as its text.
  5. 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.