action-setup icon indicating copy to clipboard operation
action-setup copied to clipboard

Support wildcard for version

Open owjs3901 opened this issue 1 year ago • 3 comments

If package.json has a packageManager property and set any string to the version of pnpm setup action, it raises an error. However, the star sign(*) means to allow any version. So, If * is set as the version of the pnpm setup action, the action should select the version in package.json.

owjs3901 avatar Jun 27 '24 02:06 owjs3901

Is this supported by corepack?

zkochan avatar Jul 05 '24 13:07 zkochan

@zkochan Yes, It works image

owjs3901 avatar Jul 16 '24 05:07 owjs3901

No, that command will resolve the package manager to an exact version and write an exact version to package.json. The packageManager field currently only works with exact versions.

zkochan avatar Aug 23 '24 23:08 zkochan