Skip to content

Commit

Permalink
chore: try fix winpty path again
Browse files Browse the repository at this point in the history
  • Loading branch information
talmobi committed Sep 26, 2024
1 parent f646517 commit 0f783fc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/windows-node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Add npm to PATH on Windows for winpty
- name: Ensure npm is in PATH and log PATH
shell: pwsh
run: |
# Explicitly add npm to PATH
$nodePath = (Get-Command npm).Source
$nodeDir = Split-Path $nodePath
$env:PATH += ";$nodeDir"
# Get npm's location and ensure it is in PATH
$npmPath = (Get-Command npm).Path
$npmDir = Split-Path $npmPath
$env:PATH += ";$npmDir"
echo "Modified PATH: $env:PATH"
echo "npm is located at: $npmPath"
- name: Workaround to create TTY
shell: pwsh
Expand Down

0 comments on commit 0f783fc

Please sign in to comment.