springernature / shunter

A Node.js application built to read JSON and translate it into HTML
GNU Lesser General Public License v3.0
237 stars 28 forks source link

CI schedule & npm installation method #362

Closed jpw closed 1 year ago

jpw commented 1 year ago

We run npm i not npm ci in CI (and ignore the package-lock.json) because shunter is a library, not an application. In the event of a change anywhere in the dependency tree breaking the build, or tests, we want to know ASAP to reflect what our users experience.

Running npm ci would result in a deterministic install that would not give us that insight.

This means we do not need the package-lock.json to be in git; but it's required for actions/setup-node GH Action to work.