Lesson

Use Nx to run commands on CI

Access
Included
Transcript
Needs source

The project we're using already has a CI configured, using GitHub Actions and PNPM commands. But in this lesson, we’ll enhance it by replacing the existing pnpm --filter commands with optimized Nx commands for a more efficient CI pipeline.

We’ll cover how to scaffold a new CI configuration with:

pnpm nx g ci-workflow

We’ll also take a quick detour to discuss namedInputs in nx.json, ensuring the cache invalidates appropriately whenever the CI config is updated.