Skip to content

Commit 71daadb

Browse files
SDSLeonclaude
andcommitted
ci(release): allow re-triggering with an already-bumped version
Skip the bump commit when package.json already matches the requested version so a previously-failed release can be retried without manual state surgery. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent dcbde4a commit 71daadb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ jobs:
6262
git config user.name "github-actions[bot]"
6363
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
6464
git add package.json
65-
git commit -m "release: v${{ inputs.version }}"
65+
if git diff --cached --quiet; then
66+
echo "package.json already at v${{ inputs.version }}; skipping bump commit."
67+
else
68+
git commit -m "release: v${{ inputs.version }}"
69+
fi
6670
git tag "v${{ inputs.version }}"
6771
6872
- name: Push commit and tag

0 commit comments

Comments
 (0)