From a878e7f5f7913481879287b7fe65c03a9fb461d7 Mon Sep 17 00:00:00 2001 From: Gregory Boch Date: Tue, 1 Dec 2026 22:26:15 +0900 Subject: [PATCH] fix(ci): wait up to 10 minutes for npm to serve a published version npm accepts a publish one to four minutes before it serves the new version (about 80 s for 1.4.0, up to 4 min for create-db 1.4.1). The verify step gave up after 60 s, so the 1.4.1 release went red although all three CLIs had published, and the job had to be re-run. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9367104..cc8d053 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,13 +107,15 @@ jobs: for pkg in ${{ env.WORKSPACES }}; do version=$(node -p "require('./${{ env.PACKAGES_DIR }}/$pkg/package.json').version") - # The registry can take a few seconds to serve a new version + # npm accepts a publish minutes before it serves the new version + # (about 80 s for 1.4.0, up to 4 min for 1.4.1), so wait up to 10 min published="" - for attempt in 1 2 3 4 5 6; do + for attempt in $(seq 1 60); do published=$(npm view "$pkg@$version" version 2>/dev/null || true) if [ "$published" = "$version" ]; then break fi + echo "Waiting for npm to serve $pkg@$version ($attempt/60)..." sleep 10 done