fix: resolve release workflow version bump issues

- Fixed bump-version.js to properly handle --yes flag in CI environments
- Added check to skip commit if no changes to package.json or CHANGELOG.md
- Ensured script exits cleanly after version bump with --yes flag
This commit is contained in:
2026-03-31 23:18:18 -07:00
parent 6b9b690947
commit fe18a8b9fe
2 changed files with 44 additions and 30 deletions
+6 -2
View File
@@ -80,8 +80,12 @@ jobs:
- name: Commit version bump
run: |
git add package.json CHANGELOG.md
git commit -m "chore: bump version to v${{ steps.version.outputs.new_version }}"
git push origin main
if git diff --cached --quiet; then
echo "No changes to commit (version may already be at target version)"
else
git commit -m "chore: bump version to v${{ steps.version.outputs.new_version }}"
git push origin main
fi
- name: Create git tag for release
run: |