ci: pin Node to 24.16.0 (fix changesets ERR_STREAM_PREMATURE_CLOSE) - #29
Merged
Conversation
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.
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.
Problem
The Release job fails during changelog generation:
(e.g. run 28491518516)
Root cause — Node 24.17.0
@changesets/changelog-github→@changesets/get-github-infousesnode-fetch@2, whose gzip handling regressed in Node 24.17.0.release.ymlrequested the floatingnode-version: 24, which the runner resolved to 24.17.0.Verified against the exact
getInfocall: 24.16.0 clean, 24.17.0 intermittentERR_STREAM_PREMATURE_CLOSE, 26.x broken (per upstream). Ref: changesets/changesets#2115Fix
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.