Automation Workflows
CI/CD Pipeline & GitHub Actions Templates
Fast, secure workflows for Node.js multi-version test matrices, Docker multi-arch GHCR publishing, and deployment automations.
yaml
Verified Starter
GitHub Actions Node.js CI/CD Matrix Pipeline
Multi-stage GitHub Actions matrix CI/CD pipeline with Node.js and cache.
name: CI/CD Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- name: Checkout Code
...
yaml
Verified Starter
GitHub Actions Multi-Arch Docker Build & Push to GHCR
Automated GitHub Actions workflow to build multi-architecture (linux/amd64, linux/arm64) Docker images and push to GitHub Container Registry.
name: Build and Publish Docker Image
on:
push:
branches: [main]
tags: ['v*.*.*']
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
...
yaml
Verified Starter
GitHub Actions Playwright Parallel E2E Test Workflow
Production GitHub Actions CI matrix running multi-browser Playwright tests in parallel with HTML report uploads.
name: Playwright Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3]
...
yaml
Verified Starter
GitHub Actions npm Package Publish with Sigstore Provenance
Secure npm publishing workflow utilizing OIDC token authentication, Sigstore build provenance, and automated semantic releases.
name: Publish to npm
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
...