GitHub Actions Node.js Full Pipeline
Lint, test, build, Docker push, and deploy workflow with matrix testing across Node versions, layer caching, and environment-specific deployment steps.
Complete Node.js CI/CD Pipeline
A production-ready GitHub Actions workflow covering the full Node.js delivery pipeline: lint, test, build, Docker push, and environment-specific deployment with matrix testing across multiple Node versions.
What's Included
- Matrix testing across Node.js LTS versions (18, 20, 22)
- ESLint and Prettier checks with inline annotations
- Test run with coverage report
- Docker build with layer caching using GitHub Actions cache
- Environment-specific deployment steps (staging on PR merge, prod on tag)
What You Get
ci.yml— CI pipeline (lint, test, build)deploy.yml— deployment pipeline with environment targeting- Example
.eslintrcandjest.config.jsstarter configs README.md— customization guide and required secrets
Requirements
- Node.js project with npm scripts for lint, test, and build
- Docker registry credentials (GHCR, ECR, or Docker Hub supported)