Open kidonng opened 2 years ago
You misinterpreted the code. Have you tried running this action without package.json
?
Ah, I think I got what's happening. I didn't specify a version
, so the action is finding the packageManager
field in package.json
, but I don't have one.
Sorry, my assumption is wrong 🙈
I think the error messages can be improved.
It seems this action requires a
package.json
file to be present:https://github.com/pnpm/action-setup/blob/6e1964dde3397a825e79e4607ad57f3f7ca2c7cb/src/install-pnpm/run.ts#L13-L14
Even if users only use
pnpx
and do not install packages locally, they have to provide apackage.json
, which is inconvenient.Will the action support using it without a
package.json
?