pkgjs / action

Github Actions tooling for testing Node.js packages
MIT License
12 stars 2 forks source link

Support different package managers / versions #6

Open dominykas opened 2 years ago

dominykas commented 2 years ago

It should be possible to specify a package manager, package manager version or even a matrix of package managers.

dominykas commented 2 years ago

Some thoughts on how this could be implemented...

ljharb commented 2 years ago

You can look at https://github.com/nvm-sh/nvm/blob/39d9a42c359df5dbf37c5000af8192f14a280b94/nvm.sh#L170-L330 for a mapping of actual npm/node versions that work; afaik that knowledge doesn't exist anywhere else.

I don't think we should be using corepack at all; it's experimental and has received some pushback around the way it works.