This document describes the automated release process for RiceCoder, implementing semantic versioning with enterprise release management.
The release process consists of:
- Automated semantic versioning from conventional commits
- Breaking change detection and highlighting
- Enterprise compliance and security validation
- Multi-platform binary builds
- Staged rollouts and pre-releases
- Automated package manager updates
Triggers on pushes to main branch or manual dispatch.
Features:
- Detects conventional commits since last release
- Calculates next semantic version (major.minor.patch)
- Supports pre-releases (alpha, beta, rc)
- Creates and pushes version tags
- Updates repository version files post-release
Version Calculation:
feat:commits → minor version bumpfix:commits → patch version bumpBREAKING CHANGE:→ major version bump- Pre-release suffixes:
-alpha.1,-beta.1,-rc.1
Triggers on version tags (v*.*.*) or manual dispatch.
Jobs:
- Release Validation: Tests, security audit, semver checks, breaking change detection
- Enterprise Release Validation: SOC 2 compliance, security validation
- Prepare Release: Generate changelog with breaking change highlights
- Build Release: Cross-platform binary compilation
- Create Release: GitHub release with artifacts
- Staged Rollout: Validation for staging/pre-release environments
- Update Package Managers: Homebrew, Scoop, Winget, npm manifests
- Publish: Crates.io and npm publishing
- Update Version: Repository version updates
- Production: Full release with publishing
- Staging: Staged rollout validation without publishing
Commits must follow Conventional Commits format:
<type>[optional scope]: <description>
[optional body]
[optional footer]
Types:
feat: New features (minor bump)fix: Bug fixes (patch bump)BREAKING CHANGE: Breaking changes (major bump)docs,style,refactor,perf,test,chore
- Automatically detected in commit messages and footers
- Highlighted in changelog with 🚨 warning
- Validated via
cargo-semver-checks
- SOC 2 Type II audit logging verification
- GDPR data protection validation
- HIPAA compliance (if healthcare features present)
- Security vulnerability scanning
- License compliance validation
cargo-auditfor vulnerabilitiescargo-denyfor license compliance- Unsafe code review
- Hardcoded secrets detection
- Penetration testing patterns
- Environment-based deployments
- Pre-release validation
- Gradual rollout capabilities
- Rollback procedures
Use workflow dispatch with:
version: Target version (e.g., 1.2.3)prerelease: Mark as pre-releaseenvironment: Target environment (staging/production)
- Changelog generation via
git-cliff - Version bumping from conventional commits
- Multi-platform CI/CD via GitHub Actions
- Security scanning integration
- Package manager automation
All releases undergo:
- Unit and integration tests
- Performance regression checks
- Security audits
- Compliance validation
- Cross-platform testing
- Binary execution verification
- Platform-specific binaries (Linux, macOS, Windows)
- Checksums and signatures
- Changelog and release notes
- Compliance reports
- Security scan results