summaryrefslogtreecommitdiff
path: root/.github/workflows/release-windows.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release-windows.yml')
-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