CI #3 - Speed Up Jobs with npm ci

Опубликовано: 21 Июль 2026
на канале: Swashbuckling with Code
2,375
60

npm ci is a special command for installing node packages in a continuous integration environment. In this video I show Github Actions with npm ci in a JavaScript project, after showing npm i for the same code. I also talk about some of the differences of the command, and show some benchmarks as a project scales and adds more packages so you can know how useful it is in the real world.

~~~~~~

RESOURCES

Playlist:
   • Continuous Integration (CI/CD)  

Repository:
https://github.com/Jimmydalecleveland...

npm ci Documentation:
https://docs.npmjs.com/cli/v7/command...

~~~~~~

00:00 - Intro and tip for re-running jobs
01:53 - Time for npm install to complete
03:36 - Adding npm ci and comparing
05:44 - npm ci definition and documentation
07:23 - Scaling Benchmarks of npm i vs npm ci
14:24 - Wrap-up

~~~~~~

Follow Jimmy Cleveland's doings:
twitter:   / jimmydcleveland  
blog: https://blog.jimmydc.com/

#ci #javascript #github