Uses npm ci subcommand instead of npm install to install dependencies in github action. Also contains a npm lockfile (package-lock.json), which contains the fully resolved dependency tree with pinned versions and is used by npm ci to install the dependencies. The file is intended to be commited source control
The lockfile would have to be updated (running npm install locally will automatically do this) in the repo every time the dependencies in package.json change, otherwise the install command will fail as it will check if the dependencies in the 2 files match.
Uses npm ci subcommand instead of
npm install
to install dependencies in github action. Also contains a npm lockfile (package-lock.json
), which contains the fully resolved dependency tree with pinned versions and is used bynpm ci
to install the dependencies. The file is intended to be commited source control The lockfile would have to be updated (runningnpm install
locally will automatically do this) in the repo every time the dependencies inpackage.json
change, otherwise the install command will fail as it will check if the dependencies in the 2 files match.