--- name: ci-cd-pipeline description: Set up and maintain continuous integration and continuous deployment pipelines with GitHub Actions, GitLab CI, Jenkins, or similar tools to automate testing, building, and deployment. Use when configuring automated builds, setting up test automation, implementing deployment automation, creating release workflows, managing environment deployments, configuring build caching, implementing blue-green deployments, setting up rollback strategies, or automating the entire software delivery pipeline. --- # CI/CD Pipeline - Automating Build, Test, and Deployment ## Package Manager Detection **IMPORTANT**: Before creating CI/CD configurations, detect the project's package manager by checking for lockfiles and adapt all commands accordingly. **Detection Order** (first match wins): 1. `bun.lockb` → Use **bun** 2. `pnpm-lock.yaml` → Use **pnpm** 3. `yarn.lock` → Use **yarn** 4. `package-lock.json` → Use **npm** **Command Mapping** - Adapt examples in this skill to use the detected package manager: | Action | npm | yarn | pnpm | bun | |--------|-----|------|------|-----| | Install (CI) | `npm ci` | `yarn install --frozen-lockfile` | `pnpm install --frozen-lockfile` | `bun install --frozen-lockfile` | | Run script | `npm run