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:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user