From a8a889fb3567586ee5c0b3f8908c47d863fad868 Mon Sep 17 00:00:00 2001 From: CRT Date: Thu, 22 Oct 2026 02:17:28 +0800 Subject: [PATCH] release: a staged npm publish found on the retry is reported as waiting for the maintainer's approval instead of failing after 5 minutes --- tools/release.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/release.ts b/tools/release.ts index 9d1a6d1..0565d00 100644 --- a/tools/release.ts +++ b/tools/release.ts @@ -481,6 +481,8 @@ async function npmRelease(version: string, token: string): Promise { again = true; say(`npm: ${version} is not on the registry yet: publishing once more`); const p2 = npmRun(['publish'], token); + // 0.8.25: the first publish was staged silently; the retry's 409 "previously staged" says so (no 5-minute wait) + if (/staged/i.test(p2.out)) { say(`npm: ${version} is staged and waits for the maintainer's approval: https://www.npmjs.com/package/storebound (approve it there; then deprecate runs with: bun tools/release.ts npm-publish)`); return; } if (p2.code !== 0 && !/previously published|cannot publish over/i.test(p2.out)) fail(`npm publish (second try) failed: ${p2.out.trim().split('\n').slice(-4).join(' ')}`); } }