From e1a48bcf4b554d8a4f3d2cfa73df69c548cdde8b Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Thu, 30 Jul 2026 09:04:29 +0800 Subject: Fix Windows CI: use latest node-gyp for VS2022 detection Co-Authored-By: Claude Fable 5 --- .github/workflows/release-windows.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml index fb557a5..a458265 100644 --- a/.github/workflows/release-windows.yml +++ b/.github/workflows/release-windows.yml @@ -22,6 +22,15 @@ jobs: with: node-version: 20 + # The node-gyp version pulled in by the dependency tree (v9) cannot + # detect Visual Studio 2022 on current runner images — point npm at + # the latest node-gyp for the node-pty native rebuild. + - name: Use latest node-gyp (VS2022 detection) + shell: pwsh + run: | + npm install -g node-gyp@latest + "npm_config_node_gyp=$(npm root -g)\node-gyp\bin\node-gyp.js" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 + - name: Install dependencies run: npm ci -- cgit v1.2.3