Use conventional commits:
git commit -m "feat: add new feature" # New feature
git commit -m "fix: resolve bug" # Bug fix
git commit -m "docs: update readme" # Documentation# 1. Update version (from main branch)
cz bump
# 2. Push to GitHub
git push && git push --tags
# 3. Done! GitHub Actions handles the restThe automation will:
- Update version in code
- Generate CHANGELOG
- Create GitHub Release
- Publish to PyPI (after approval)
Test on TestPyPI first:
- Go to GitHub Actions → "Release" workflow
- Click "Run workflow" → Enter version
- Install:
pip install -i https://test.pypi.org/simple/ athm==VERSION
# Delete tag and try again
git tag -d vX.Y.Z
git push origin :refs/tags/vX.Y.Z