From c87aa2333aa73e1f2cc9e166b489cc2c5cf0d353 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 14 Nov 2025 15:39:43 +0000 Subject: [PATCH] Fix release workflow to handle unchanged build files gracefully - Use git diff --staged --quiet to only commit if there are changes - Make push fail gracefully to allow release creation to continue - Resolves issue where workflow fails when dist/index.js hasn't changed --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b0f370b..8870b30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,8 +30,8 @@ jobs: git config --global user.name 'claude-code-review[bot]' git config --global user.email 'claude-code-review[bot]@users.noreply.github.com' git add -f dist - git commit -m 'Add built files' - git push origin HEAD:main + git diff --staged --quiet || git commit -m 'Add built files' + git push origin HEAD:main || echo "No changes to push or push failed" - name: Create Release uses: softprops/action-gh-release@v1