AgentSkillsCN

ci-cd-deployment

GitHub Actions、Vercel/Netlify 以及自动化测试模式。

SKILL.md
--- frontmatter
name: ci-cd-deployment
description: GitHub Actions, Vercel/Netlify, and automated testing patterns.

CI/CD & Deployment

When to use this skill

  • Configuring GitHub Actions workflows.
  • Setting up automated deployments.
  • Configuring test runners in CI.

1. GitHub Actions

  • Triggers: on: push for branches, on: pull_request for verification.
  • Caching: Always cache dependencies (npm, pip, composer) to speed up builds.
    yaml
    - uses: actions/setup-node@v4
      with:
        node-version: 18
        cache: 'npm'
    

2. Deployment

  • Atomic: Deployment should be atomic (zero downtime).
  • Migration: Run DB migrations during deployment, but ensure backward compatibility.
  • Secrets: Use repo secrets; never strict commit credentials.