From 680254cad67c5d816394bb6cd7a73639566ab77e Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 28 Sep 2026 13:39:25 +0800 Subject: [PATCH] fix(release): drop stray TS annotation in .cjs GitHub path The hardening-round edit left `(): Promise =>` in a plain .cjs file; every run since that commit died at parse time before reaching any flag handling. --- scripts/release.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release.cjs b/scripts/release.cjs index c2ed8d5..52b6d3a 100644 --- a/scripts/release.cjs +++ b/scripts/release.cjs @@ -254,7 +254,7 @@ async function github() { // Idempotent like gitea(): a re-run after a partial publish must reuse the // release it created last time instead of dying on 422 already_exists and // leaving GitHub permanently half-uploaded until someone deletes it by hand. - const byTag = (): Promise => gh(`${api}/releases/tags/v${V}`) + const byTag = () => gh(`${api}/releases/tags/v${V}`) let resp = await byTag() let rel if (resp.ok) {