Skip to content

ci: bump SDK reference workflows to Node 22 - #324

Merged
beran-t merged 1 commit into
mainfrom
fix/sdk-reference-node-22
Aug 3, 2026
Merged

ci: bump SDK reference workflows to Node 22#324
beran-t merged 1 commit into
mainfrom
fix/sdk-reference-node-22

Conversation

@beran-t

@beran-t beran-t commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

The scheduled Sync SDK Reference Documentation workflow (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:

  1. pnpm install aborts with ERR_PNPM_UNSUPPORTED_ENGINE.
  2. The generator's npm fallback (sdk-reference-generator/src/lib/install.ts) can't resolve the workspace: protocol used across the CLI monorepo.
  3. Any partial install leaves workspace deps unlinked, so tsc fails with Cannot find module 'openapi-fetch' / @bufbuild/protobuf errors from the unlinked js-sdk.

All symptoms trace back to the single Node 20 vs 22 engine mismatch.

Changes

Bump the runner Node version from 20 to 22 in:

  • .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.

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.
@mintlify

mintlify Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
e2b 🟢 Ready View Preview Aug 3, 2026, 10:03 AM

@beran-t
beran-t merged commit b9567ea into main Aug 3, 2026
10 checks passed
@beran-t
beran-t deleted the fix/sdk-reference-node-22 branch August 4, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants