From 2480c250bb74c8fb5c3e066579fdc4cb5fd910be Mon Sep 17 00:00:00 2001 From: WellDunDun <45949032+WellDunDun@users.noreply.github.com> Date: Sun, 8 Mar 2026 15:34:00 +0300 Subject: [PATCH 1/2] fix(ci): add workflow_dispatch to publish and remove [skip ci] from auto-bump The [skip ci] tag in auto-bump commit messages propagates into squash merge commits, causing the Publish workflow to be skipped on merge. Remove [skip ci] from the auto-bump message and add workflow_dispatch to publish.yml for manual re-runs. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/auto-bump-cli-version.yml | 2 +- .github/workflows/publish.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-bump-cli-version.yml b/.github/workflows/auto-bump-cli-version.yml index bb280c2..7aad047 100644 --- a/.github/workflows/auto-bump-cli-version.yml +++ b/.github/workflows/auto-bump-cli-version.yml @@ -51,7 +51,7 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add cli/reins/package.json package.json - git commit -m "chore: bump cli version to v${NEW_VERSION} [skip ci]" || exit 0 + git commit -m "chore: bump cli version to v${NEW_VERSION}" || exit 0 if [[ ! "$BRANCH_NAME" =~ ^[A-Za-z0-9._/-]+$ ]]; then echo "Invalid head ref: $BRANCH_NAME" exit 1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d59d5b4..4bedd37 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,7 @@ name: Publish on: push: branches: [master] + workflow_dispatch: jobs: test: From fbeecae6436ba11052d61134200f7d001688dba2 Mon Sep 17 00:00:00 2001 From: WellDunDun <45949032+WellDunDun@users.noreply.github.com> Date: Sun, 8 Mar 2026 15:47:56 +0300 Subject: [PATCH 2/2] fix(ci): restrict publish job to master ref only Guard against accidental releases from non-master branches when using workflow_dispatch manual trigger. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4bedd37..39803b7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,6 +36,7 @@ jobs: run: bun src/index.ts audit ../.. publish: + if: github.ref == 'refs/heads/master' needs: test runs-on: ubuntu-latest permissions: