To prepare for a minor version release (vX.Y), you must create a dedicated release branch (vX.Y-branch) that diverges from the main branch. This allows the release branch to undergo testing and stabilization while main continues development.
Workflow Summary
- Determine SCHEMA_VERSION updates: Check if
west.manifest.SCHEMA_VERSION needs to be bumped to X.Y. This should only be done if the manifest syntax has changed in a way that requires a newer west version to parse it. If changes are compatible with older versions, do not change it. - Create the branch: Create
vX.Y-branch from origin/main and push it. - Set Alpha Version: In the
vX.Y-branch, update src/west/version.py to set __version__ to X.Y.0a1. - Prepare Main: In the
main branch, set the version in pyproject.toml to X.Y.99 and create an annotated tag vX.Y.99 to facilitate easy version tracking via git describe.
Commands
Create and push the release branch:
git checkout -b vX.Y-branch origin/main
git push origin vX.Y-branch
Tagging the main branch (after setting version to X.Y.99):
git tag vX.Y.99
git push origin vX.Y.99