From 527cee17ae921de8b3360988048bff446cf822c8 Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Tue, 10 Nov 2026 15:27:11 +0100 Subject: [PATCH] ci: wait up to five minutes for npm to show a published version Co-Authored-By: Claude Opus 5.5 --- scripts/release-registry.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/release-registry.ts b/scripts/release-registry.ts index 0cbbe390..1a84093b 100644 --- a/scripts/release-registry.ts +++ b/scripts/release-registry.ts @@ -103,14 +103,15 @@ export async function checkTrustedPublishers( } /** Confirm the published version records the selected commit, allowing registry propagation. - * @throws After one minute if the version is missing or its commit differs. + * @throws After five minutes if the version is missing or its commit differs. */ export async function verifyPublication( name: string, version: string, commit: string, ): Promise { - for (let attempt = 0; attempt < 12; attempt++) { + // npm can take several minutes to serve a new version. 10.3.0 took more than one. + for (let attempt = 0; attempt < 60; attempt++) { const metadata = await registry(`${name}/${version}`, true) if (metadata?.gitHead === commit) return if (metadata)