From ecf7472b683f5acab5ae9687dbab5a85fdf4afcd Mon Sep 17 00:00:00 2001 From: jdalton Date: Sun, 18 Oct 2026 22:00:50 -0400 Subject: [PATCH] fix(publish): accept GitHub squash merge titles --- .github/workflows/publish-npm.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 7a8871dcc..c399c90a7 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -714,6 +714,10 @@ jobs: exit 1 fi BUMP_SUBJECT="$(git log -1 --format=%s --fixed-strings --grep="chore: bump version to $VERSION" HEAD)" + GITHUB_PR_SUFFIX='^(.*) \(#[1-9][0-9]*\)$' + if [[ "$BUMP_SUBJECT" =~ $GITHUB_PR_SUFFIX ]]; then + BUMP_SUBJECT="${BASH_REMATCH[1]}" + fi if [ "$BUMP_SUBJECT" != "chore: bump version to $VERSION" ]; then echo "::error::Default-branch history does not contain the signed bump commit for $VERSION. Merge its release PR first." >&2 exit 1