summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorhaoyuren <13851610112@163.com>2026-07-30 09:04:29 +0800
committerhaoyuren <13851610112@163.com>2026-07-30 09:04:29 +0800
commite1a48bcf4b554d8a4f3d2cfa73df69c548cdde8b (patch)
tree28241b081c18c68979f3dbd32015702ae2be276e /.github
parent06a972b0f72930ae29d5388764062b83285d39fc (diff)
Fix Windows CI: use latest node-gyp for VS2022 detection
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release-windows.yml9
1 files changed, 9 insertions, 0 deletions
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