Why prefer 'npm ci' in pipelines?
npm ci && npm test
- Clean install from the lockfile
- It skips running any tests
- It edits package versions
- It publishes the package
npm ci installs exactly what the lockfile pins, giving reproducible builds.
Play DevOps ▸