Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the "prepare" script only when necessary
Since package.json contains a "prepare" life cycle script which invokes the build, all invocations of `npm ci` and some other scripts will also build Auspice, even if the build is not used in some CI jobs. Use --ignore-scripts to skip all life cycle scripts and explicitly call npm run build when the build is necessary. This should improve build times, especially for the "build" job which was effectively running the build twice. Note that `npm ci --ignore-scripts && npm run build` is NOT the same as `npm ci` alone, since --ignore-scripts also ignores life cycle scripts defined by dependencies. This is why `npm ci` is still necessary for smoke-test even though it doesn't explicitly require the Auspice build.
- Loading branch information