4d42db2e52
pnpm/action-setup@v4 errors when both the `version` input and a `packageManager` field in package.json are specified. Detect the packageManager field during the package-manager detection step and conditionally omit `version: latest` when it is present. Fixes CI failures on repos using Corepack-style pnpm version pinning (e.g. headlamp-polaris-plugin PR #103). Co-Authored-By: Paperclip <noreply@paperclip.ing>