Docker and CI/CD · Middle · Question 35 of 75
In a monorepo, how can you avoid running the backend pipeline when only the frontend changed?
- 1Run the backend pipeline only once on weekends
- ✓Correct answer: Filter triggers by
pathsor detect changed packages - 3Move the backend code into a separate Git branch
Explanation
on: push: paths: ['apps/api/**'] is the simple version. Tools like Nx or Turborepo compute affected projects from the dependency graph.