# CI CD Github Actions

> GitHub Actions 流水线生成与优化指南。提供 pnpm/npm/pip 缓存加速策略与矩阵构建。

- Skill: `2428424081cn/ci-cd-github-actions` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add 2428424081cn/ci-cd-github-actions`
- Raw SKILL.md: https://api.skillmd.com/api/skills/2428424081cn/ci-cd-github-actions/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: 2428424081cn (https://skillmd.com/u/2428424081cn)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/2428424081cn/ci-cd-github-actions

---


# GitHub Actions 高性能 CI/CD 指南

## 核心优化策略
1. **依赖缓存（Actions Cache）**：使用 `actions/setup-node` 的 `cache: 'pnpm'` 缩减 70% 安装时间。
2. **并发取消（Concurrency）**：对相同 PR 的连续 Push 自动取消旧构建，节约 Action 分钟数。

