File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,17 +12,21 @@ Automate the versioning and publishing process by:
1212
1313### 1. Get Current Version and Commits
1414
15- Run these commands in parallel:
16- - ` git describe --tags --abbrev=0 ` - Get the latest tag
17- - ` git log $(git describe --tags --abbrev=0)..HEAD --oneline ` - Get commits since last tag
15+ First, get the latest tag:
16+ - ` git describe --tags --abbrev=0 `
17+
18+ Then, get commits since the last tag (replace LAST_TAG with the tag from the previous command):
19+ - ` git log LAST_TAG..HEAD --oneline `
20+
21+ Note: You should execute the first command, get the tag value, then use it in the second command.
1822
1923### 2. Analyze Version Bump
2024
2125Based on conventional commits since the last tag, determine the version bump:
2226
2327** MAJOR (X.0.0)** - Breaking changes:
24- - Commits with ` BREAKING CHANGE: ` in body
25- - Commits with ` ! ` after type (e.g., ` feat!: ` , ` fix!: ` )
28+ - Commits with BREAKING CHANGE: in body
29+ - Commits with an exclamation mark after type (e.g., feat!:, fix!:)
2630- Major refactoring that changes public API
2731
2832** MINOR (X.Y.0)** - New features:
You can’t perform that action at this time.
0 commit comments