- CI is green on all supported platforms.
python3 -m pytest tests/ -vpasses.python3 scripts/check_docs_consistency.pypasses.CHANGELOG.mdupdated.
- Bump version in
pyproject.tomland changelog. - Create release branch/tag:
git tag vX.Y.Zgit push origin vX.Y.Z
- Build package:
python3 -m build
- Validate artifacts:
python3 -m twine check dist/*
- Publish:
- TestPyPI first, then PyPI.
- Create GitHub Release and paste changelog summary.
- Monitor issues for 7 days.
- Prepare
X.Y.(Z+1)hotfix if needed.
Treat GitHub as the canonical release source and ClawHub as a derivative distribution surface.
Before or after publishing to ClawHub:
- Verify
LICENSE,pyproject.toml, and README agree. - Run
python3 scripts/check_clawhub_consistency.py --repo-root . --slug clawpolicywhen possible. - If the current ClawHub CLI still rejects normal publish/sync because of
acceptLicenseTerms, usenode scripts/publish_clawhub_manual.mjs --skill-dir <dir> --slug clawpolicy --version <X.Y.Z> --name ClawPolicy. - Confirm GitHub tag/release exists for the canonical version before treating the distribution as final.