Compare commits

...

1 Commits

Author SHA1 Message Date
Zoltan Kochan
373574958f
fix: extract pnpm version from packageManager field instead of returning undefined
When packageManager is set to e.g. "pnpm@9.1.0+sha...", strip the
"pnpm@" prefix and any "+sha..." hash suffix so the action installs
the correct version. Previously returning undefined caused failures
on Windows.
2026-03-25 13:52:29 +01:00
2 changed files with 2 additions and 2 deletions

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -101,8 +101,8 @@ Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_
}
if (typeof packageManager === 'string' && packageManager.startsWith('pnpm@')) {
// pnpm will handle version management via packageManager field
return undefined
// Strip the "pnpm@" prefix and any "+sha..." hash suffix
return packageManager.replace('pnpm@', '').replace(/\+.*$/, '')
}
if (!GITHUB_WORKSPACE) {