ci: bump SDK reference workflows to Node 22 - #324
Merged
Conversation
E2B CLI v2.16.x upgraded its build tooling (tsdown@0.22.4), which requires Node ^22.18.0 || >=24.11.0. On Node 20 the SDK reference generator's pnpm install aborted with ERR_PNPM_UNSUPPORTED_ENGINE, the npm fallback could not resolve the workspace: protocol, and the CLI build failed with unresolved workspace type imports. Bumping both workflows to Node 22 fixes generation.
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
ben-fornefeld
approved these changes
Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The scheduled
Sync SDK Reference Documentationworkflow (failing run) has been broken since the E2B CLI's v2.16.x releases.Those releases upgraded the CLI's build tooling to
tsdown@0.22.4, which requires Node^22.18.0 || >=24.11.0. The workflow runs on Node 20, so:pnpm installaborts withERR_PNPM_UNSUPPORTED_ENGINE.sdk-reference-generator/src/lib/install.ts) can't resolve theworkspace:protocol used across the CLI monorepo.tscfails withCannot find module 'openapi-fetch'/@bufbuild/protobuferrors from the unlinkedjs-sdk.All symptoms trace back to the single Node 20 vs 22 engine mismatch.
Changes
Bump the runner Node version from
20to22in:.github/workflows/sdk-reference-sync.yml(the failing pipeline).github/workflows/sdk-reference-generator-test.yml(kept consistent)pnpm 9 is fully compatible with Node 22, so no other changes are needed. With Node 22, pnpm installs natively and the CLI build passes.
Note
The sync workflow runs on a
*/15 * * * *cron, so it will keep failing until this lands.