Skip to content

ci: retry pkg-pr-new publish on transient 5xx#1500

Open
TheodorNEngoy wants to merge 1 commit intomodelcontextprotocol:mainfrom
TheodorNEngoy:codex/pkg-pr-new-retry
Open

ci: retry pkg-pr-new publish on transient 5xx#1500
TheodorNEngoy wants to merge 1 commit intomodelcontextprotocol:mainfrom
TheodorNEngoy:codex/pkg-pr-new-retry

Conversation

@TheodorNEngoy
Copy link

The Publish Any Commit workflow uses pkg-pr-new to publish preview packages for each PR.

We’ve seen this step intermittently fail with pkg.pr.new 5xx / Cloudflare worker errors (transient external failures), which blocks otherwise-green PRs.

This change wraps the publish step with a small retry loop:

  • Retries up to 3 times with a short backoff.
  • Only retries when the output looks like a transient pkg.pr.new/Cloudflare 5xx failure.
  • Fails fast on other (likely real) errors.

No behavior changes to the SDK itself.

@TheodorNEngoy TheodorNEngoy requested a review from a team as a code owner February 8, 2026 02:48
@changeset-bot
Copy link

changeset-bot bot commented Feb 8, 2026

⚠️ No Changeset found

Latest commit: a8ab7a5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 8, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/client@1500

@modelcontextprotocol/server

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server@1500

@modelcontextprotocol/express

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/express@1500

@modelcontextprotocol/hono

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/hono@1500

@modelcontextprotocol/node

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/node@1500

commit: a8ab7a5

@TheodorNEngoy
Copy link
Author

Context: this was prompted by transient pkg.pr.new 5xx/Cloudflare errors intermittently failing the required "Publish Any Commit" check (e.g. on #1499). With this retry in place, those flakes should stop blocking otherwise-green PRs.

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