Configure GitHub Actions for automated builds, linting, and deployment.

Subtasks

1. CI workflow

  • Create .github/workflows/ci.yml
  • Configure pnpm caching for faster installs
  • Add linting job (pnpm lint)
  • Add type-checking job (pnpm check)
  • Add build job (pnpm build)
  • Run on push and PR to main

2. Deployment workflow

  • Create .github/workflows/deploy.yml
  • Build and deploy to GitHub Pages (or target host)
  • Run only on push to main

3. Quality gates

  • Require CI to pass before merging PRs
  • Add branch protection rules for main

Workflow Structure

  • on push/PR to main: Run lint, check, build
  • on push to main: Deploy to production

Automate everything

CI/CD pipeline with GitHub Actions

A static site template built with SvelteKit.

Sveleton, 2025