Setup Automated Releases
Setup automated release workflows with semantic versioning, conventional commits, and comprehensive automation
$ npx claude-code-templates@latest --command="deployment/setup-automated-releases" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Automated Release System
Setup automated release workflows: $ARGUMENTS
Current Project Analysis
- Project structure: @package.json or @setup.py or @go.mod (detect project type)
- Existing workflows: !
find .github/workflows -name "*.yml" 2>/dev/null | head -3 - Current versioning: @package.json version or git tags analysis
- Commit patterns: !
git log --oneline -20 | grep -E "^(feat|fix|docs|style|refactor|test|chore)" | wc -l || echo "0"conventional commits - Release history: !
git tag -l | wc -l || echo "0"existing releases
Task
Implement comprehensive automated release system:
- Analyze Repository Structure
- Check for existing CI/CD workflows
- Identify current versioning approach
- Review existing release processes
- Create Version Tracking
- For Python: Use __version__ in __init__.py or pyproject.toml
- For Go: Use version in go.mod
- For others: Create version.txt file
- Ensure version follows semantic versioning (MAJOR.MINOR.PATCH)
- Set Up Conventional Commits
- feat: for new features (minor bump)
- fix: for bug fixes (patch bump)
- feat!: or BREAKING CHANGE: for breaking changes (major bump)
- docs:, chore:, style:, refactor:, test: for non-releasing changes
- Include examples and guidelines for each type
- Create Pull Request Template
.github/pull_request_template.md
- Include conventional commit reminder
- Add checklist for common requirements
- Reference contributing guidelines
- Create Release Workflow
.github/workflows/release.yml:
- Trigger on push to main branch
- Analyze commits since last release
- Determine version bump type
- Update version in appropriate file(s)
- Generate release notes from commits
- Update CHANGELOG.md
- Create git tag
- Create GitHub Release
- Attach distribution artifacts
- Include manual trigger option for forced releases
- Create PR Validation Workflow
.github/workflows/pr-check.yml:
- Validate PR title follows conventional format
- Check commit messages
- Provide feedback on version impact
- Run tests and quality checks
- Configure GitHub Release Notes
.github/release.yml
- Define categories for different change types
- Configure changelog exclusions
- Set up contributor recognition
- Update Documentation
- Current version badge
- Latest release badge
- Build status badge
- Document release process
- Add link to CONTRIBUTING.md
- Explain version bump rules
- Set Up Changelog Management
- Add [Unreleased] section for upcoming changes
- Configure automatic changelog updates
- Set up changelog categories
- Configure Branch Protection
- Require PR reviews
- Require status checks
- Require conventional PR titles
- Dismiss stale reviews
- Document recommended settings
- Add Security Scanning
- Configure security alerts
- Add security policy if needed
- Test the System
- Verify PR checks work correctly
- Test manual release trigger
- Validate changelog generation
Arguments: $ARGUMENTS
Additional Considerations
For Monorepos:- Set up independent versioning per package
- Configure changelog per package
- Use conventional commits scopes
- Include API compatibility checks
- Generate API documentation
- Add upgrade guides for breaking changes
- Include Docker image versioning
- Set up deployment triggers
- Add rollback procedures
- Always create release branches for hotfixes
- Use release candidates for major versions
- Maintain upgrade guides
- Keep releases small and frequent
- Document rollback procedures
This automated release system provides:
- ✅ Consistent versioning
- ✅ Automatic changelog generation
- ✅ Clear contribution guidelines
- ✅ Professional release notes
- ✅ Reduced manual work
- ✅ Better project maintainability
Related Claude Code Commands
Add Changelog
Generate and maintain project changelog with Keep a Changelog format
Containerize Application
Containerize application with optimized Docker configuration, security, and multi-stage builds
Ci Setup
Setup comprehensive CI/CD pipeline with automated testing, building, and deployment
Prepare Release
Prepare and validate release packages with comprehensive testing, documentation, and automation
Rollback Deploy
Rollback deployment to previous version with safety checks, database considerations, and monitoring
Deployment Monitoring
Comprehensive deployment monitoring with observability, alerting, health checks, and performance tracking
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.