astro-github-actions
Installation
SKILL.md
Astro GitHub Actions
This skill helps you set up a comprehensive CI/CD pipeline for Astro sites using GitHub Actions. The goal is to help authors ship higher-quality sites with less manual effort: type errors caught before merge, broken links flagged, builds verified, and deploys automated.
What this skill covers
There are several categories of workflows that a healthy Astro project should have. Not every site needs all of them — the right mix depends on whether the project has TypeScript, custom components, content collections, tests, and where it deploys. Your job is to figure out which ones are relevant and set them up.
The workflows fall into these categories:
- Type/content checking —
astro check(TypeScript + content collection schema validation) - Code quality — ESLint and Prettier
- Build verification —
astro buildruns cleanly - Testing — Vitest for unit and component tests
- Quality gates — Lighthouse CI (performance, a11y, SEO, best practices)
- Link checking — broken-link detection on the built site
- Security — npm audit for dependency vulnerabilities
- Deployment — GitHub Pages, Cloudflare Pages, Netlify, or Vercel