← スキル一覧に戻る

release-workflow
by AmnadTaowsoam
⭐ 0🍴 0📅 2026年1月24日
SKILL.md
name: Release Workflow description: Standardized release processes including versioning, changelog generation, and deployment automation.
Release Workflow
Overview
Release Workflow defines how code moves from development to production, including versioning, changelog generation, tagging, and deployment automation.
Core Principle: "Releases should be boring, predictable, and automated."
1. Semantic Versioning (SemVer)
Format: MAJOR.MINOR.PATCH
- MAJOR: Breaking changes (1.0.0 → 2.0.0)
- MINOR: New features, backward compatible (1.0.0 → 1.1.0)
- PATCH: Bug fixes, backward compatible (1.0.0 → 1.0.1)
Examples
1.0.0 → 1.0.1 (fix: resolve login bug)
1.0.1 → 1.1.0 (feat: add dark mode)
1.1.0 → 2.0.0 (BREAKING CHANGE: remove deprecated API)
2. Automated Versioning with standard-version
# Install
npm install --save-dev standard-version
# Add to package.json
{
"scripts": {
"release": "standard-version",
"release:minor": "standard-version --release-as minor",
"release:major": "standard-version --release-as major"
}
}
What standard-version does:
- Bumps version in
package.json - Generates
CHANGELOG.md - Creates git commit
- Creates git tag
# Run release
npm run release
# Output:
✔ bumping version in package.json from 1.0.0 to 1.1.0
✔ outputting changes to CHANGELOG.md
✔ committing package.json and CHANGELOG.md
✔ tagging release v1.1.0
3. Changelog Generation
Automated CHANGELOG.md
# Changelog
## [1.1.0] - 2024-01-15
### Features
- **auth**: add OAuth2 support (#123)
- **ui**: implement dark mode (#124)
### Bug Fixes
- **api**: resolve race condition in user creation (#125)
- **cart**: prevent negative quantities (#126)
### BREAKING CHANGES
- User API now requires authentication token
4. Git Tagging Strategy
# Lightweight tag (not recommended)
git tag v1.0.0
# Annotated tag (recommended)
git tag -a v1.0.0 -m "Release version 1.0.0"
# Push tags
git push --follow-tags
5. Release Branches
Git Flow
main (production)
↑
release/1.1.0
↑
develop
↑
feature/new-feature
Trunk-Based Development
main (production)
↑
feature/new-feature (short-lived)
6. GitHub Release Automation
# .github/workflows/release.yml
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: CHANGELOG.md
draft: false
prerelease: false
- name: Build and Deploy
run: |
npm ci
npm run build
npm run deploy
7. Pre-release Versions
# Alpha release
1.0.0-alpha.1
# Beta release
1.0.0-beta.1
# Release candidate
1.0.0-rc.1
# Creating pre-release
npm run release -- --prerelease alpha
8. Release Checklist Template
## Release Checklist for v1.1.0
### Pre-Release
- [ ] All tests passing
- [ ] No critical bugs
- [ ] Documentation updated
- [ ] CHANGELOG reviewed
- [ ] Breaking changes communicated
### Release
- [ ] Run `npm run release`
- [ ] Push tags: `git push --follow-tags`
- [ ] Verify CI/CD pipeline
- [ ] Monitor deployment
### Post-Release
- [ ] Verify production deployment
- [ ] Monitor error rates
- [ ] Announce release to team
- [ ] Update documentation site
9. Hotfix Workflow
# Create hotfix branch from main
git checkout -b hotfix/1.0.1 main
# Make fix
git commit -m "fix: resolve critical security issue"
# Release hotfix
npm run release -- --release-as patch
# Merge to main and develop
git checkout main
git merge hotfix/1.0.1
git checkout develop
git merge hotfix/1.0.1
10. Release Workflow Checklist
- Semantic Versioning: Following SemVer?
- Automated Versioning: standard-version configured?
- Changelog: Auto-generated from commits?
- Git Tags: Annotated tags created?
- CI/CD Integration: Automated deployment on tag?
- Release Notes: Published to GitHub Releases?
- Rollback Plan: Can we rollback if needed?
- Monitoring: Post-release monitoring in place?
Related Skills
45-developer-experience/commit-conventions45-developer-experience/repo-automation-scripts
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です