We install dependencies with NPM install, Action's installScriptnpm ci needs a package-lock.json file, otherwise will throw an error. But in some cases, the library use optionalDependencies, package-lock.json is different on different platforms.
For example, vercel's turborepo,I run npm install on my MAC and create a package-lock.json, but only turbo-darwin-arm64 exist in package-lock.json, while pushed it to GitHub and run this Action, because turbo-linux-64 needs on Linux. Then I got an error. I need to use a custom install method npm install --no-package-lock to make it works.
I would like to add an installScript to support custom installation scripts like buildScript.
We install dependencies with NPM install, Action's
installScript
npm ci
needs a package-lock.json file, otherwise will throw an error. But in some cases, the library useoptionalDependencies
, package-lock.json is different on different platforms.For example, vercel's turborepo,I run
npm install
on my MAC and create a package-lock.json, but onlyturbo-darwin-arm64
exist in package-lock.json, while pushed it to GitHub and run this Action, becauseturbo-linux-64
needs on Linux. Then I got an error. I need to use a custom install methodnpm install --no-package-lock
to make it works.I would like to add an installScript to support custom installation scripts like buildScript.