From 8a170d74ebe2144b56339d2a6e4c4eaf640f3994 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 27 May 2026 16:44:00 -0400 Subject: [PATCH] Add a PR build-check workflow -- runs `npm ci && npm run build` on every PR against main so a broken build gets caught before merge instead of failing the deploy workflow on push to main. Mirrors the build step from deploy.yml (node 20, npm cache) but without the deploy job. --- .github/workflows/build-check.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build-check.yml diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml new file mode 100644 index 0000000..3262a8a --- /dev/null +++ b/.github/workflows/build-check.yml @@ -0,0 +1,24 @@ +name: Build check + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Build with Astro + run: npm run build