From 3c9e785a2d63fcc9bcff250c6388bcd2ab4259b5 Mon Sep 17 00:00:00 2001 From: Suleman Dawood Date: Tue, 15 Sep 2026 18:21:46 +1000 Subject: [PATCH] ci(release): match the release guard on the commit subject only The guard used contains() over the whole head-commit message, so a squash-merge body that merely mentioned the skip marker skipped the release. Match the subject prefix instead, and drop the marker from the bump commit message. --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfa7a25..2a28326 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,10 @@ jobs: name: bump, publish to npm, and tag runs-on: ubuntu-latest # Skip the version-bump commit this workflow itself pushes. - if: github.event_name == 'workflow_dispatch' || !contains(github.event.head_commit.message, '[skip release]') + # Match the subject only: a squash-merge body can mention the phrase. + if: >- + github.event_name == 'workflow_dispatch' || + !startsWith(github.event.head_commit.message, 'chore(release):') steps: - uses: actions/checkout@v4 with: @@ -50,7 +53,7 @@ jobs: run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - npm version patch -m "chore(release): %s [skip release]" + npm version patch -m "chore(release): %s" echo "tag=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT" - name: Publish to npm