DevOps / Scripts yaml Intermediate

GitHub Actions Node CI Pipeline

Complete CI pipeline for Node.js apps: install, lint, test, build on every PR.

yaml
name: CI
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: 20 }
      - run: npm ci
      - run: npm run lint
      - run: npm test
      - run: npm run build

Prerequisites

  • GitHub repository
  • Node.js project

Pro Tips

  • → Cache node_modules with actions/cache.

Was this module useful?

Share your experience — it helps the team improve.

Leave Feedback

Commercial Licensing

Acquire a production access token or template license for enterprise deployment.

Module Info

Language
yaml
Level
Intermediate
Read time
3 min
Published
Apr 2024
License
Commercial License

Newsletter

New modules every week, directly to your inbox.