Use `npm ci` to avoid package-lock update

Running `npm ci` instead of `npm install` avoids `package-lock` file update and installation of patch versions different from upstream.

This can be useful to avoid git pollution and to have exactly the same version of npm dependencies when debugging or writing an example to reproduce an issue.

`npm ci` was added to NPM to be used in Continuous Integration setups (hence the `ci`) keeping exactly the same versions of packages listed in package-lock file.
This commit is contained in:
Rodrigo Pedra Brum 2019-11-06 01:39:47 -03:00 committed by GitHub
parent 75ae66a2c1
commit cbd3d8a8fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ composer install
Install NPM dependencies:
```sh
npm install
npm ci
```
Build assets: