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: https://github.com/TriPSs/conventional-changelog-action/issues/280
This commit is contained in:
Anton Babenko
2026-01-19 19:55:15 +01:00
parent 13d69d4007
commit 9ba821546f
+7 -13
View File
@@ -33,7 +33,7 @@ jobs:
# - Git commit and push
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v6
uses: TriPSs/conventional-changelog-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
git-message: 'chore(release): {version}'
@@ -46,15 +46,14 @@ jobs:
version-path: 'version'
skip-on-empty: 'false'
skip-version-file: 'false'
skip-commit: 'true'
skip-tag: 'true'
skip-commit: 'false'
# 2b. Sync plugin version, SKILL.md version, and git ref
# This ensures all three version fields stay synchronized:
# - root version (updated by conventional-changelog-action above)
# - plugins[0].version (synced here)
# - SKILL.md metadata.version (synced here)
- name: Sync and Commit Release
- name: Sync Plugin Version and SKILL.md
if: steps.changelog.outputs.skipped == 'false'
env:
VERSION: ${{ steps.changelog.outputs.version }}
@@ -131,17 +130,12 @@ jobs:
sys.exit(1)
EOF
# Commit all changes (CHANGELOG, marketplace.json, SKILL.md) together
# Commit the sync
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add CHANGELOG.md .claude-plugin/marketplace.json SKILL.md
git commit -m "chore(release): v${VERSION} [skip ci]"
# Create tag
git tag "v${VERSION}"
# Push commit and tags together
git push --follow-tags
git add .claude-plugin/marketplace.json SKILL.md
git commit --amend --no-edit
git push --force-with-lease
# 3. Create GitHub Release
# Only run if a new version was created