cicd-pipeline
由 gitgoodordietrying 提供
Data & Analytics简介
Create, debug, and manage CI/CD pipelines with GitHub.
描述
该技能的功能
Covers GitHub Actions workflow creation and management for automated testing, deployment, and release pipelines. Handles workflow syntax, matrix builds, secrets, caching, and debugging failing runs. Works across Node.js, Python, Go, and Rust projects.
Combines workflow generation, secrets management via the gh CLI, and live debugging patterns in one skill rather than requiring separate references for each concern.
何时使用
- Run tests automatically on every pull request
- Deploy to staging when pushing to the staging branch
- Publish an npm package when a GitHub release is created
- Build and push a Docker image to a container registry
- Debug a failing CI job by SSHing into the runner
示例工作流
User asks: set up CI for my Node.js project that runs tests on every PR
- 1
Creates .github/workflows/ci.yml with push and pull_request triggers targeting main
- 2
Configures actions/setup-node@v4 with node-version 20 and npm caching
- 3
Adds steps for npm ci, npm test, and npm run lint
- 4
Explains how to verify the workflow triggers by checking branch filter and default branch placement
A working ci.yml file committed to .github/workflows/ that runs the test suite on every push and pull request to main
前置要求
- GitHub account
- GitHub repository with Actions enabled
安装
clawhub install gitgoodordietrying/cicd-pipeline运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。