nextjs-monorepo-ci
Installation
SKILL.md
nextjs-monorepo-ci
GitLab CI/CD for Next.js monorepos: six-stage pipeline from lint to deploy notification. Covers security scanning, standalone-output obfuscation, unprivileged Kaniko builds, and post-deploy IndexNow pings.
When to use
- Adding or fixing CI stages (validate / security / build / obfuscate / package / notify)
- Debugging
npm cifailures, artifact paths, orcd-then-cppath issues - Tuning
javascript-obfuscatorsettings on Next.js.next/standaloneoutput - Switching from Docker-in-Docker to Kaniko for unprivileged builds
- Configuring gitleaks with allowlists for public tokens (IndexNow keys, GA IDs)
- Adding a new app (e.g.,
kb) to an existing multi-app pipeline
Do NOT use for:
- GitHub Actions pipelines (different syntax and runner model)
- Non-Next.js Node.js apps