This document describes the release process for CodeFlow repositories.
- Breaking changes
- Significant new features
- Architecture changes
- New features (backward compatible)
- New integrations
- Performance improvements
- Bug fixes
- Security patches
- Documentation updates
- All tests pass
- Code coverage meets threshold (>80% for critical code)
- Linting passes
- Type checking passes
- Security scanning passes
- CHANGELOG.md updated
- README.md updated (if needed)
- API documentation updated (if needed)
- Migration guides created (for breaking changes)
- Version bumped in appropriate file
- Versions synchronized across repos (if coordinated release)
- Version format validated
- Unit tests pass
- Integration tests pass
- E2E tests pass (if applicable)
- Manual testing completed
-
Update CHANGELOG.md
## [1.2.0] - 2025-01-XX ### Added - New feature X - New integration Y ### Changed - Improved performance ### Fixed - Bug fix Z
-
Bump Version
# Using bump-version script pwsh scripts/bump-version.ps1 -Type minor # Or manually update version in pyproject.toml or package.json
-
Synchronize Versions (if coordinated release)
pwsh scripts/sync-versions.ps1 -Version "1.2.0" -
Commit Changes
git add . git commit -m "chore: prepare release v1.2.0" git push
For major releases, create a release branch:
git checkout -b release/v1.2.0
git push origin release/v1.2.0# Create annotated tag
git tag -a v1.2.0 -m "Release version 1.2.0"
# Push tag
git push origin v1.2.0-
Create GitHub Release
- Go to repository → Releases → Draft a new release
- Tag:
v1.2.0 - Title:
Release v1.2.0 - Description: Copy from CHANGELOG.md
-
Release Notes Format
## What's New ### Features - Feature X - Feature Y ### Improvements - Improvement A - Improvement B ### Bug Fixes - Fix C - Fix D ### Breaking Changes - Breaking change E (migration guide: [link]) ## Full Changelog See [CHANGELOG.md](CHANGELOG.md) for full details.
-
Attach Artifacts (if applicable)
- Build artifacts
- Checksums
- Installation packages
-
Merge to Main (if release branch used)
git checkout main git merge release/v1.2.0 git push origin main
-
Update Documentation
- Update version in documentation
- Update installation instructions
- Update compatibility matrix
-
Announce Release
- GitHub release notes
- Blog post (if applicable)
- Community announcements
The release workflow automates:
- Version validation
- Tag creation
- GitHub release creation
- Artifact building and upload
-
Create Release Tag
git tag -a v1.2.0 -m "Release version 1.2.0" git push origin v1.2.0 -
Workflow Runs Automatically
- Validates version
- Builds artifacts
- Creates GitHub release
- Uploads artifacts
For releases across multiple repositories:
-
Determine Release Version
- Use same MAJOR.MINOR version
- PATCH versions can differ
-
Check Dependencies
- Verify compatibility
- Update dependency versions
# Sync all repos to same version
pwsh scripts/sync-versions.ps1 -Version "1.2.0"- codeflow-engine (core)
- codeflow-desktop (depends on engine)
- codeflow-vscode-extension (depends on engine)
- codeflow-website (depends on engine)
- codeflow-infrastructure (if needed)
After each release, update dependent repos:
- Update dependency versions
- Test integration
- Release dependent component
- Patch Releases: As needed (bug fixes, security)
- Minor Releases: Monthly (new features)
- Major Releases: Quarterly (breaking changes)
- End of Quarter: No major releases
- Holiday Periods: Limited releases
- Critical Bug Fixes: Always allowed
For critical security fixes:
-
Immediate Action
- Create hotfix branch
- Apply fix
- Bump PATCH version
- Release immediately
-
Post-Release
- Update CHANGELOG.md
- Create security advisory
- Notify users
# Release v1.2.0
**Release Date:** YYYY-MM-DD
## Highlights
- Major feature X
- Performance improvement Y
- Security fix Z
## What's New
### Features
- Feature 1
- Feature 2
### Improvements
- Improvement 1
- Improvement 2
### Bug Fixes
- Fix 1
- Fix 2
### Breaking Changes
- Breaking change 1 (see [migration guide](link))
## Installation
[Installation instructions]
## Upgrade Guide
[Upgrade instructions]
## Full Changelog
See [CHANGELOG.md](CHANGELOG.md) for full details.
## Contributors
Thank you to all contributors!For release questions:
- GitHub Issues: codeflow-orchestration/issues
- Documentation: This document