From 8d64bbe292da633c33294640ecc9b696450276ea Mon Sep 17 00:00:00 2001 From: richerfu Date: Thu, 9 Jul 2026 09:51:55 +0800 Subject: [PATCH] Fix publish workflow fail --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 53796a4..43983fb 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -25,7 +25,7 @@ jobs: run: | set -euo pipefail subject="$(printf '%s' "${COMMIT_MESSAGE}" | sed -n '1p')" - if [ "${subject}" != "chore(npm): publish" ]; then + if [[ ! "${subject}" =~ ^chore\(npm\):\ publish(\ \(#[0-9]+\))?$ ]]; then echo "Refusing to publish from commit subject: ${subject}" exit 1 fi