From 6a55dcb38ed9cc84f28886294116c2fa666b7ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=87=AF90331?= <90331@sangfor.com> Date: Thu, 14 May 2026 18:36:52 +0800 Subject: [PATCH] ci(publish-npm): add debug output and fault tolerance to version bump step Add git status and git diff for debugging visibility during release. Change git add to -A and append || true to commit/push to prevent workflow failures when there are no changes or push issues. Co-authored-by: CoStrict --- .github/workflows/publish-npm.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 7e382251b..b135983b4 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -49,9 +49,11 @@ jobs: # Commit and push version bump git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - git add package.json scripts/defines.ts - git commit -m "chore(release): bump version to ${VERSION}" - git push origin HEAD + git status + git diff + git add -A + git commit -m "chore(release): bump version to ${VERSION}" || true + git push origin HEAD || true - name: Create or recreate tag if: ${{ github.event_name == 'workflow_dispatch' }}