From f6465177bb1999a3198ec3f6ca2a1a6a81b3048a Mon Sep 17 00:00:00 2001 From: talmobi Date: Thu, 26 Sep 2024 22:11:53 +0300 Subject: [PATCH] chore: try fix winpty path --- .github/workflows/windows-node.js.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/windows-node.js.yml b/.github/workflows/windows-node.js.yml index 8b1d171..a256885 100644 --- a/.github/workflows/windows-node.js.yml +++ b/.github/workflows/windows-node.js.yml @@ -25,6 +25,14 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' + - name: Add npm to PATH on Windows for winpty + shell: pwsh + run: | + # Explicitly add npm to PATH + $nodePath = (Get-Command npm).Source + $nodeDir = Split-Path $nodePath + $env:PATH += ";$nodeDir" + - name: Workaround to create TTY shell: pwsh run: |