action icon indicating copy to clipboard operation
action copied to clipboard

update node to 16 and add configurable install command

Open alexdor opened this issue 2 years ago • 7 comments

alexdor avatar Apr 14 '22 11:04 alexdor

Thanks for the PR!

Can you share the use-case for customizing the installation command?

Also, ideally dependency upgrades (incl Node) would be in a different PR so it can be discussed and tested in isolation but doesn't seem like a big deal here. Can you set it to Node v14 though? LTS is still active till 2023 April.

privatenumber avatar Apr 14 '22 17:04 privatenumber

Yeah, absolutely 😊 Our use case is that we are using https://rushjs.io/ for our monorepo. So the command to install the deps would be rush install (which under the hood uses pnpm).

It could be autodetected, but I thought it would cover more use-cases if the users could select their install command (if they wanted to)

I can also split them out in different prs if you prefer that 😊 I went for 16 because recently all the GitHub actions got bumped to 16, but yeah I'll set it to 14 😊

alexdor avatar Apr 14 '22 18:04 alexdor

Any updates on this?

privatenumber avatar Apr 22 '22 07:04 privatenumber

I need this one too because I want to use pnpm without lockfile, however it seems impossible for now.

JounQin avatar Jul 06 '22 00:07 JounQin

@JounQin I've been waiting for this to be merged because the current version of the package isn't usable from other libraries

until @privatenumber has had some time to look through things you can use alexdor/[email protected] which is the version with my changes that i've been using

alexdor avatar Jul 06 '22 12:07 alexdor

@alexdor Thanks, I have another proposal at https://github.com/pkg-size/action/issues/49, and it should be implemented at https://github.com/privatenumber/ci, I'll raise a PR for it soon.

JounQin avatar Jul 06 '22 12:07 JounQin

Thanks for sharing your use-cases. Using npx ci makes sense for when there's a lock file but seems like I over looked the use-cases where there aren't any. That said, I withdraw my suggestion to use npx ci.

privatenumber avatar Jul 11 '22 18:07 privatenumber