Skip to content

Commit 9ba8215

Browse files
committed
fix: revert conventional-changelog-action to v5 due to tag detection bug
- Keep actions/checkout@v6 (works correctly) - Revert conventional-changelog-action v6 -> v5 - Restore skip-commit: false (v6 has tag detection issues with skip options) - Restore git --amend workflow (compatible with v5) Root cause: v6 fails to detect existing tags (v1.2.0-v1.4.0) when skip-commit is enabled, causing it to calculate version from v1.0.0 instead of v1.4.0. Related: TriPSs/conventional-changelog-action#280
1 parent 13d69d4 commit 9ba8215

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/automated-release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
# - Git commit and push
3434
- name: Conventional Changelog Action
3535
id: changelog
36-
uses: TriPSs/conventional-changelog-action@v6
36+
uses: TriPSs/conventional-changelog-action@v5
3737
with:
3838
github-token: ${{ secrets.GITHUB_TOKEN }}
3939
git-message: 'chore(release): {version}'
@@ -46,15 +46,14 @@ jobs:
4646
version-path: 'version'
4747
skip-on-empty: 'false'
4848
skip-version-file: 'false'
49-
skip-commit: 'true'
50-
skip-tag: 'true'
49+
skip-commit: 'false'
5150

5251
# 2b. Sync plugin version, SKILL.md version, and git ref
5352
# This ensures all three version fields stay synchronized:
5453
# - root version (updated by conventional-changelog-action above)
5554
# - plugins[0].version (synced here)
5655
# - SKILL.md metadata.version (synced here)
57-
- name: Sync and Commit Release
56+
- name: Sync Plugin Version and SKILL.md
5857
if: steps.changelog.outputs.skipped == 'false'
5958
env:
6059
VERSION: ${{ steps.changelog.outputs.version }}
@@ -131,17 +130,12 @@ jobs:
131130
sys.exit(1)
132131
EOF
133132
134-
# Commit all changes (CHANGELOG, marketplace.json, SKILL.md) together
133+
# Commit the sync
135134
git config user.name "github-actions[bot]"
136135
git config user.email "github-actions[bot]@users.noreply.github.com"
137-
git add CHANGELOG.md .claude-plugin/marketplace.json SKILL.md
138-
git commit -m "chore(release): v${VERSION} [skip ci]"
139-
140-
# Create tag
141-
git tag "v${VERSION}"
142-
143-
# Push commit and tags together
144-
git push --follow-tags
136+
git add .claude-plugin/marketplace.json SKILL.md
137+
git commit --amend --no-edit
138+
git push --force-with-lease
145139
146140
# 3. Create GitHub Release
147141
# Only run if a new version was created

0 commit comments

Comments
 (0)