awesome-prometheus-alerts/.github/workflows/site.yml
Samuel Berthe f5f4fdfba4
ci: pin Node.js to 24 for Astro 6 compatibility
Astro 6 requires Node.js >=22.12.0; 'latest' was resolving to v20.
2026-04-22 01:49:13 +02:00

38 lines
727 B
YAML

name: Site build
on:
pull_request:
paths:
- site/**
- _data/**
push:
branches:
- master
paths:
- site/**
- _data/**
jobs:
site-build:
name: Build Astro site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 'latest'
cache: npm
cache-dependency-path: site/package-lock.json
- name: Install dependencies
working-directory: site
run: npm ci
- name: Build Astro site
working-directory: site
env:
ASTRO_TELEMETRY_DISABLED: "1"
run: npm run build