Open srl295 opened 3 months ago
I agree, this is odd behavior. I'm also now realizing that if we stop running npm i wrangler
, we may break users who did not add a step to their GHA workflow to separately install dependencies.
There's two things we should do here:
npx
instead of installing wrangler, causing the mess described here.npx
(or equivalent) rather than installing wrangler in the local project (or alternatively install globally, but the former probably makes more sense.)
Hi. I'm using this action to upload a project that's not at root an npm project. The output is kind of confusing, and leaves a mess of the workspace.
okay. Why did you do
npm i
instead of justnpx wrangler@3.13.2
? Doesn't make sense.Then when it goes to run:
Well, yeah, you dirtied it, wrangler :)
So wrangler-action has added a node_modules, package.json and package-lock.json in my work area. And then complains that my work area is a mess.
I'm going to try a preemptive
npm i -g wrangler@3.x
to see if it cleans things up.