From 6735714c3a617da3f1e2180d74ebb699207bb0b3 Mon Sep 17 00:00:00 2001 From: Josh Carver Date: Mon, 12 Oct 2026 13:32:03 -0700 Subject: [PATCH] fix(release): retry TypeScript bump until new CLI is on npm The bump-ts-packages job runs seconds after publish-npm, but npm takes about a minute to process a publish and its CDN caches package metadata for up to five minutes. pnpm install --lockfile-only therefore failed with ERR_PNPM_NO_MATCHING_VERSION on the first attempt of every release from 0.9.9 through 0.9.15 and needed a manual re-run. Retry the install every 30s for up to 10 minutes instead. --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a7e8646f..7cfe57470 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -462,7 +462,13 @@ jobs: cli_version="${TAG#aether-agent-cli-v}" echo "cli_version=$cli_version" >> "$GITHUB_OUTPUT" npm pkg set --prefix packages/aether-sdk "dependencies.@aether-agent/cli=^$cli_version" - pnpm install --lockfile-only + # npm takes ~1 min to process a publish and its CDN caches metadata for up to 5 min. + for attempt in $(seq 1 20); do + pnpm install --lockfile-only && break + if [ "$attempt" -eq 20 ]; then exit 1; fi + echo "@aether-agent/cli@$cli_version not resolvable yet (attempt $attempt/20); retrying in 30s" + sleep 30 + done if ! git diff --quiet packages/aether-sdk/package.json; then (cd packages/aether-sdk && npm version patch --no-git-tag-version) (cd packages/aether-evals && npm version patch --no-git-tag-version)