Module 71: CI/CD

Lesson 2 of 5 · 15–25 minutes

Automated builds

🏠The everyday picture

A bakery with a written recipe and a timer makes the same bread every morning, whoever is on shift. A bakery that relies on one person's memory has good days and bad days.

📘What it really is

🖱️Try it

On a fresh clone of your CRM in a new folder (or in your lab), run only the commands written in your README to build it. Note every missing step or hidden assumption, and fix the README or scripts until a clean build works first time. Add "typecheck", "lint" and "build" scripts to package.json if they're missing.

✅Quick check

Why use npm ci instead of npm install in a build?

Show the answer

It installs exactly what the lock file says, so every build uses the same versions.

Why build on a clean machine?

Show the answer

To prove the build doesn't depend on anything hidden on one person's computer.

← PreviousPrinciples of CI/CD
ProLearners Assist