From 72f5fef62aa71178b85537f5835c18b07a58d984 Mon Sep 17 00:00:00 2001 From: "Ricardo Q. Bazan" Date: Mon, 29 Jun 2026 10:35:09 -0500 Subject: [PATCH] fix(ci): pin Node to exact 24.16.0 to dodge node-fetch break MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Node's recent security release (in 24.17.0 and 22.23.0) surfaces a node-fetch@2 false-positive ERR_STREAM_PREMATURE_CLOSE, which breaks @changesets/get-github-info's GitHub API call during `changeset version`. A floating major pin does not help: .node-version "22" resolves to 22.23.0, which is broken — that's why #4 still failed. Pin an exact pre-regression patch instead. Verified in the actual runner with a matrix probe (8 GraphQL requests each): 24.17.0 -> 0/8, 22.23.0 -> 1/8 (broken); 24.16.0 -> 8/8, 24.13.0 -> 8/8, 22.20.0 -> 8/8 (good). Pin to 24.16.0, the newest pre-regression patch. Temporary until changesets moves off node-fetch@2. Co-Authored-By: Claude Opus 4.8 (1M context) --- .node-version | 2 +- mise.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.node-version b/.node-version index 2bd5a0a..b832e40 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -22 +24.16.0 diff --git a/mise.toml b/mise.toml index 3567829..bb9552b 100644 --- a/mise.toml +++ b/mise.toml @@ -2,5 +2,5 @@ _.path = ["{{config_root}}/node_modules/.bin"] [tools] -node = "22" +node = "24.16.0" pnpm = "10.6.4"