Skip to content

fix: extract pnpm version from packageManager field on Windows#216

Merged
zkochan merged 1 commit intomasterfrom
fix-windows
Mar 25, 2026
Merged

fix: extract pnpm version from packageManager field on Windows#216
zkochan merged 1 commit intomasterfrom
fix-windows

Conversation

@zkochan
Copy link
Copy Markdown
Member

@zkochan zkochan commented Mar 25, 2026

Summary

  • When packageManager is set (e.g. pnpm@9.1.0+sha...), the action now extracts the actual version instead of returning undefined
  • Strips the pnpm@ prefix and any +sha... hash suffix to get the clean version string
  • Fixes failures on Windows where returning undefined caused pnpm to not be installed correctly

Test plan

  • CI passes on all platforms (ubuntu, macos, windows)
  • Verify pnpm is installed at the correct version when packageManager field is present in package.json

…ing 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.
@zkochan zkochan merged commit 62bce64 into master Mar 25, 2026
28 of 29 checks passed
@BenjaminBrienen
Copy link
Copy Markdown

Why is this Windows-specific? Why strip the values instead of using them?

@BenjaminBrienen
Copy link
Copy Markdown

Where is the successful test that satisfies the test plan in the PR description?

@zkochan
Copy link
Copy Markdown
Member Author

zkochan commented Apr 26, 2026

A code contribution would help more than posting a dozen of angry comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants