Skip to content

Commit

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

- name: Ensure npm is in PATH and log PATH
shell: pwsh
run: |
# 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
run: |
npm install
npm run build --if-present
winpty npm test
winpty npm.cmd test

0 comments on commit 8b6a253

Please sign in to comment.