mirror of
https://github.com/pnpm/action-setup.git
synced 2026-11-03 20:40:57 +00:00
fix: preserve Windows Node shim detection
This commit is contained in:
@@ -460,3 +460,7 @@ jobs:
|
||||
if ($LASTEXITCODE -ne 0 -or $actual -ne $env:EXPECTED_VERSION) {
|
||||
throw "Expected $env:EXPECTED_VERSION via bin_dest, got $actual"
|
||||
}
|
||||
$pnpx = Get-Command pnpx -ErrorAction Stop
|
||||
if ((Split-Path -Parent $pnpx.Source) -ne $env:BIN_DEST) {
|
||||
throw "pnpx resolves to $($pnpx.Source), expected under $env:BIN_DEST"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user