Skip to content

Commit d3f0652

Browse files
committed
docs(publish): fix command execution order in workflow
1 parent 79f7b95 commit d3f0652

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.claude/commands/publish.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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

2125
Based 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:

0 commit comments

Comments
 (0)