@@ -7,16 +7,13 @@ This directory contains automated CI/CD workflows for the Autohand CLI project.
77### 🚀 Release (` release.yml ` )
88
99** Triggers:**
10- - Push to ` main ` (stable release)
11- - Push to ` beta ` (beta release)
12- - Push to ` alpha ` (alpha release)
10+ - Push to ` main ` (alpha release)
1311- Manual workflow dispatch
1412
1513** What it does:**
16- 1 . ** Determines version** based on conventional commits
17- - ` feat: ` → MINOR bump (0.1.0 → 0.2.0)
18- - ` fix: ` → PATCH bump (0.1.0 → 0.1.1)
19- - ` feat!: ` or ` BREAKING CHANGE: ` → MAJOR bump (0.1.0 → 1.0.0)
14+ 1 . ** Determines version** based on the selected release channel
15+ - Alpha bumps the patch from the latest stable tag and appends the short SHA
16+ - Stable releases use the current ` package.json ` version unless manually overridden
2017
21182 . ** Builds binaries** for all platforms:
2219 - macOS Apple Silicon (` autohand-macos-arm64 ` )
@@ -32,9 +29,8 @@ This directory contains automated CI/CD workflows for the Autohand CLI project.
32295 . ** Publishes to npm** (stable releases only)
3330
3431** Release Channels:**
35- - ** main** → ` v1.2.3 ` (stable)
36- - ** beta** → ` v1.2.3-beta.202511221100 ` (beta with timestamp)
37- - ** alpha** → ` v1.2.3-alpha.20251122110530 ` (alpha with timestamp)
32+ - ** main push** → ` v1.2.4-alpha.abc1234 ` (next patch from the latest stable tag plus short SHA)
33+ - ** manual release** → ` v1.2.3 ` (stable)
3834
3935### ✅ CI (` ci.yml ` )
4036
@@ -109,9 +105,9 @@ Add these secrets in GitHub Settings → Secrets → Actions:
109105
1101061 . Go to: Actions → Release → Run workflow
1111072 . Choose:
112- - ** Branch** : main/beta/alpha
108+ - ** Branch** : main or another release source branch
113109 - ** Version** : Leave empty for auto, or specify (e.g., ` 1.2.3 ` )
114- - ** Channel** : alpha/beta/ release
110+ - ** Channel** : alpha/release
1151113 . Click "Run workflow"
116112
117113## Version Strategy
@@ -120,14 +116,13 @@ Add these secrets in GitHub Settings → Secrets → Actions:
120116
121117Format: ` MAJOR.MINOR.PATCH[-prerelease] `
122118
123- - ** MAJOR** : Breaking changes ( ` feat!: ` or ` BREAKING CHANGE: ` )
124- - ** MINOR** : New features ( ` feat: ` )
125- - ** PATCH** : Bug fixes ( ` fix: ` )
119+ - ** MAJOR** : Breaking changes
120+ - ** MINOR** : New features
121+ - ** PATCH** : Bug fixes and small improvements
126122
127123### Prerelease Tags
128124
129- - ** Alpha** : ` 1.2.3-alpha.20251122110530 ` (timestamp)
130- - ** Beta** : ` 1.2.3-beta.202511221100 ` (timestamp)
125+ - ** Alpha** : ` 1.2.4-alpha.abc1234 ` (next patch from the latest stable tag plus short SHA)
131126- ** Release** : ` 1.2.3 ` (no suffix)
132127
133128## Changelog Generation
@@ -151,9 +146,8 @@ Check:
151146### Release Not Created
152147
153148Check:
154- 1 . Commit message follows conventional commits
155- 2 . Not a version bump commit (contains ` chore(release): ` )
156- 3 . Repository has write permissions enabled
149+ 1 . The last commit is not a version bump commit (contains ` chore(release): ` )
150+ 2 . Repository has write permissions enabled
157151
158152### npm Publish Fails
159153
0 commit comments