Skip to content

fix(release): retry TypeScript bump until new CLI is on npm - #598

Merged
jcarver989 merged 1 commit into
mainfrom
fix/release-bump-npm-propagation
Oct 12, 2026
Merged

jcarver989 merged 1 commit into
mainfrom
fix/release-bump-npm-propagation

Conversation

@jcarver989

@jcarver989 jcarver989 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Problem

bump-ts-packages in release.yml has failed on the first attempt of every release from 0.9.9 through 0.9.15, and each needed a manual re-run:

ERR_PNPM_NO_MATCHING_VERSION  No matching version found for @aether-agent/cli@^0.9.15
The latest release of @aether-agent/cli is "0.9.14".

The job starts about 3 seconds after publish-npm finishes, but npm doesn't serve the new version yet. npm takes about a minute to process a publish, and its CDN caches package metadata for up to 5 minutes (cache-control: public, max-age=300).

Release publish-npm done bump fails npm's publish time
0.9.13 14:33:51 14:34:10 14:35:00
0.9.14 23:59:29 23:59:44 00:00:24

Fix

Retry pnpm install --lockfile-only every 30s, up to 20 times (~10 minutes), before failing. Retrying the install itself (rather than polling with npm view first) checks exactly what fails: npm and pnpm request different forms of the package metadata, which the CDN caches separately.

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.
@jcarver989
jcarver989 enabled auto-merge (squash) October 12, 2026 20:32
@jcarver989
jcarver989 disabled auto-merge October 12, 2026 20:33
@jcarver989
jcarver989 enabled auto-merge (squash) October 12, 2026 20:33
@jcarver989
jcarver989 merged commit 2bcf3e6 into main Oct 12, 2026
17 checks passed
@jcarver989
jcarver989 deleted the fix/release-bump-npm-propagation branch October 12, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant