Skip to content

ci: pin Node to 24.16.0 (fix changesets ERR_STREAM_PREMATURE_CLOSE) - #29

Merged
davidkpiano merged 1 commit into
mainfrom
fix/pin-node-24.16.0
Jul 1, 2026
Merged

ci: pin Node to 24.16.0 (fix changesets ERR_STREAM_PREMATURE_CLOSE)#29
davidkpiano merged 1 commit into
mainfrom
fix/pin-node-24.16.0

Conversation

@davidkpiano

Copy link
Copy Markdown
Member

Problem

The Release job fails during changelog generation:

🦋  error FetchError: Invalid response body while trying to fetch
    https://api.github.com/graphql: Premature close   (ERR_STREAM_PREMATURE_CLOSE)

(e.g. run 28491518516)

Root cause — Node 24.17.0

@changesets/changelog-github@changesets/get-github-info uses node-fetch@2, whose gzip handling regressed in Node 24.17.0. release.yml requested the floating node-version: 24, which the runner resolved to 24.17.0.

Verified against the exact getInfo call: 24.16.0 clean, 24.17.0 intermittent ERR_STREAM_PREMATURE_CLOSE, 26.x broken (per upstream). Ref: changesets/changesets#2115

Fix

Pin the release workflow's Node to 24.16.0 (exact, so it can't float back into a broken patch). CI test jobs are left untouched — they don't hit the changelog GraphQL path.

Same fix as statelyai/xstate#5577.

Node 24.17.0 regressed node-fetch@2's gzip handling, causing @changesets/changelog-github's GraphQL request to fail with ERR_STREAM_PREMATURE_CLOSE during changelog generation. The floating 'node-version: 24' resolved to 24.17.0. Pin to 24.16.0, the last known-good 24.x. Ref: changesets/changesets#2115
davidkpiano added a commit that referenced this pull request Jul 1, 2026
@statelyai/graph@2.1.0

Generated locally via `changeset version` on Node 24.16.0 to bypass the Node 24.17.0 / node-fetch gzip bug (ERR_STREAM_PREMATURE_CLOSE) that fails changelog generation on CI. See #29.
@davidkpiano
davidkpiano merged commit 613ed18 into main Jul 1, 2026
5 checks passed
@davidkpiano
davidkpiano deleted the fix/pin-node-24.16.0 branch July 1, 2026 15:06
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