This document is the maintainer playbook for cutting NeMo Flow releases. It describes the release contract, the version files that must be updated, the tag format that CI accepts, the package surfaces that are published, and the checks to run before and after a tag push.
This section defines where release history and release-facing details are maintained.
- There is no
CHANGELOG.mdin this repository. - The documentation site has a release-notes landing page for current documentation-visible release status.
- The source of truth for complete release history and tag-specific release notes is always GitHub Releases for this repository.
Do not copy full GitHub Release notes into CHANGELOG.md or the docs site.
The docs release-notes page can summarize support status and point users to
GitHub Releases.
The release pipeline publishes these package surfaces from a tag push:
| Ecosystem | Published Surface |
|---|---|
| crates.io | nemo-flow, nemo-flow-adaptive, nemo-flow-ffi, nemo-flow-cli |
| PyPI | nemo-flow |
| npm | nemo-flow-node, nemo-flow-openclaw, nemo-flow-wasm |
| GitHub Pages | The documentation site, including the versioned docs build |
Go remains source-first. There is no separate Go package-manager publication step in the repository release workflow.
The mirrored GitLab pipeline also publishes the same tag's collected package artifacts to NVIDIA Artifactory. It is driven by the tag push, not by a GitLab pipeline schedule.
NeMo Flow versions are anchored on the workspace SemVer in the repository root
Cargo.toml.
- The root
Cargo.tomlworkspace.package.versionis the canonical release version for the Rust workspace. - The root
Cargo.tomlworkspace.dependenciesentries fornemo-flow,nemo-flow-adaptive,nemo-flow-ffi, andnemo-flow-climust stay aligned with that same version. crates/node/package.jsoncarries the base npm version for the Node.js package. The repository-rootpackage-lock.jsoncarries the npm workspace lock entries and must be updated with it.integrations/openclaw/package.jsoncarries the base npm version for the OpenClaw plugin package and must stay aligned with the same release version.- The Python package version is derived at packaging time.
pyproject.tomlstaysdynamic = ["version"]in the repository, and the packaging recipe writes a concrete version intopyproject.tomlandcrates/python/Cargo.tomlin the ephemeral packaging workspace. - The published WebAssembly npm package version is derived from the Rust workspace
version during
wasm-packpackaging.
For non-tag CI builds, packaging recipes append a commit-derived suffix:
- Node.js and WebAssembly use
-<short_sha>. - Python uses
+<short_sha>and converts prerelease labels into PEP 440 form. For example,0.2.0-rc.1becomes0.2.0rc1when packaged for PyPI.
Release tags must use raw Rust-compatible SemVer without a leading v.
- Use
0.1.0for stable releases. - Use
0.1.0-rc.1for prereleases. - Do not use tags such as
v0.1.0orv0.1.0-rc.1.
CI rejects tags that do not match the required format.
The tag text must match the version that the packaging jobs publish.
Release tags for a frozen release line should be created from the matching
release/* branch, not from main.
When code freeze begins for a target release, create a release branch from the
latest main commit. Name the branch from the target release major and minor
version:
These examples assume upstream is the NVIDIA repository remote
(NVIDIA/NeMo-Flow). The origin remote is usually a maintainer's personal
fork.
git fetch upstream main
git checkout -b release/0.2 upstream/main
git push upstream release/0.2After creating the release branch, open a PR against main that does both of
the following:
-
Add the new
release/*branch to.github/nightly-alpha-branches.yamlso nightly alpha tags continue for the frozen release line. -
Bump all package versions on
mainto the next release line:just set-version <next-version>
New PRs that must go into the upcoming release must target the new release/*
branch. Changes intended for later releases should continue to target main.
When a release branch no longer needs nightly alpha tags, open a PR against
main to remove that branch from
.github/nightly-alpha-branches.yaml.
Before you create a release tag, confirm the following:
- The intended release commit is already on the release branch you intend to
tag. For frozen release lines, tag the matching
release/*branch. - The release commit contains the final version bump, docs updates, and any public API changes that belong in the release.
- The working tree you use for local validation is clean or disposable.
- Registry credentials and repository settings are in place:
- GitHub Actions
id-token: writeaccess for the top-level crates.io publish job - crates.io trusted publishers for
nemo-flow,nemo-flow-adaptive,nemo-flow-ffi, andnemo-flow-cliare configured for the top-level.github/workflows/ci.yamlworkflow - GitHub Actions
id-token: writeaccess is available for the top-level npm publish job - GitHub Actions
id-token: writeaccess for the top-level PyPI publish job
- GitHub Actions
- The GitHub Release entry is ready to become the only canonical release-notes surface.
Update the versioned source files in the release PR or release-prep commit. Prefer the repository helper:
just set-version <release-version>The helper updates:
- The root
Cargo.tomlworkspace version. - The root
Cargo.tomlworkspace.dependenciesversions fornemo-flow,nemo-flow-adaptive,nemo-flow-ffi, andnemo-flow-cli. crates/node/package.jsonand thecrates/nodeentry in the rootpackage-lock.jsonto the same release version.integrations/openclaw/package.jsonand theintegrations/openclawentry in the rootpackage-lock.jsonto the same release version.
Review docs and snippets that mention explicit versions, including:
README.mdCONTRIBUTING.mddocs/getting-started/installation.md- Any binding README or example that pins a release number
Do not commit a static Python package version into pyproject.toml just to cut
the release. The packaging workflow stamps that file during the build.
Run the checks that match the surfaces affected by the release. For a normal repository release, the safest baseline is:
uv run pre-commit run --all-files
just test-rust
just test-python
just test-go
just test-node
just test-wasm
./scripts/build-docs.sh linkcheck
./scripts/build-docs.sh pagesIf you want to validate the packaging recipes before pushing a tag, run:
just --set output_dir "$PWD/target/release-artifacts" --set ref_name 0.1.0 package-node
just --set output_dir "$PWD/target/release-artifacts" --set ref_name 0.1.0 package-openclaw
just --set output_dir "$PWD/target/release-artifacts" --set ref_name 0.1.0 package-python
just --set output_dir "$PWD/target/release-artifacts" --set ref_name 0.1.0 package-wasmBe aware that the local packaging recipes intentionally rewrite version fields in place while they build artifacts. In a disposable CI workspace that is fine. In a local checkout, restore those temporary manifest edits before continuing if you are not committing them.
After the release commit is merged and validated, create and push the raw SemVer tag:
git fetch upstream release/0.1
git checkout release/0.1
git pull --ff-only upstream release/0.1
git tag 0.1.0
git push upstream 0.1.0Use the prerelease form when needed:
git tag 0.1.0-rc.1
git push upstream 0.1.0-rc.1Pushing a valid tag triggers .github/workflows/ci.yaml.
That workflow then calls .github/workflows/ci_pipe.yml
for the shared release documentation and packaging stages.
The release pipeline then:
- Validates the tag format in the
preparejob. - Skips repo checks and the Rust, Python, Go, Node.js, and WebAssembly test jobs. Run those checks before creating and pushing the release tag.
- Builds and uploads the versioned GitHub Pages documentation artifact.
- Builds publishable package artifacts with the exact tag version:
package-nodepacks the npm Node.js package.package-openclawpacks the npm OpenClaw plugin package.package-pythonbuilds platform wheels.package-wasmpacks the npm WebAssembly package.
- Publishes packages from the top-level workflow after the reusable packaging
jobs complete:
publish-ruststamps Cargo workspace versions from the release tag, then runscargo publish --packagefornemo-flow,nemo-flow-adaptive,nemo-flow-ffi, andnemo-flow-clithrough trusted publishing from the top-level workflowpublish-pythonuploads the wheel artifacts to PyPI with trusted publishing from the top-level workflowpublish-npmpublishes the Node.js, OpenClaw plugin, and WebAssembly npm packages through npm trusted publishing from the top-level workflow- Stable tags publish to the npm
latestdist-tag - Prerelease tags such as
0.1.0-rc.1publish to the npmnextdist-tag so they do not become the default upgrade target
- Stable tags publish to the npm
- Deploys the GitHub Pages docs site.
The workflow boundary is split intentionally:
.github/workflows/ci_pipe.ymlproduces the publishable package artifacts, runs the docs build, and uploads the GitHub Pages artifact..github/workflows/ci.yamlowns all crates.io, PyPI, and npm publication decisions and credentials..github/workflows/ci.yamlperforms only theactions/deploy-pagesstep for documentation publication.- This layout also satisfies the official
pypa/gh-action-pypi-publishguidance that trusted publishing should not run inside reusable workflows.
The mirrored GitLab pipeline in .gitlab-ci.yml handles
NVIDIA Artifactory publication for the same tag:
- GitLab starts the pipeline from a tag push through
CI_COMMIT_TAG; no GitLab cron or pipeline schedule is required. - The collector waits for the mirrored GitHub tag and matching GitHub Actions run, then downloads the wheel, Cargo, Node.js, and WebAssembly package artifacts produced by GitHub Actions.
- The Artifactory jobs publish those collected artifacts to the configured Python, Cargo, and npm Artifactory registries.
npm trusted publishing has its own registry-side constraints:
- Each npm package can only have one trusted publisher configured at a time.
- Because this repository publishes
nemo-flow-node,nemo-flow-openclaw, andnemo-flow-wasm, configure trusted publishers for all three packages before pushing a release tag. - npm trusted publishing currently supports GitHub-hosted runners, not self-hosted runners.
Stable docs versioning is narrower than package publication:
- Stable released docs are selected from tags that match
X.Y.Z. - Prerelease tags such as
0.1.0-rc.1still run the docs workflow, but they are not treated as stable released versions by the Sphinx multiversion configuration. - Those prerelease docs can still appear in the published version switcher as prerelease snapshots when they are among the selected recent release tags.
After the tag pipeline succeeds, publish or finalize the GitHub Release entry for that tag.
- Keep complete release notes in GitHub Releases.
- Do not copy those notes into
CHANGELOG.mdor duplicate the full release history in the docs site. - If you use GitHub-generated notes, review them before publishing. The
category mapping lives in
.github/release.yml.
After the release is live, verify:
- The expected crates are visible on crates.io.
- The
nemo-flowwheel is visible on PyPI. - The
nemo-flow-node,nemo-flow-openclaw, andnemo-flow-wasmpackages are visible on npm. - The GitHub Pages deployment completed successfully.
- The GitHub Release page is complete and accurate.
Use the failure point to decide how to recover:
- If the tag pipeline fails before any registry publish step succeeds, fix the issue and rerun or replace the tag as appropriate.
- If any package has already been published to a public registry, do not reuse the same version number. Prepare a follow-up patch or prerelease instead.
- If only the GitHub Release text is wrong, edit the GitHub Release entry directly. Do not create a duplicate notes surface in the repository.