Compare commits

...

2 Commits

Author SHA1 Message Date
2c0df4bf64 Add presubmit to build site for each pr. 2024-06-30 09:09:56 +12:00
5d545d3dcd Remove defunct npm run serve. 2024-06-30 09:08:12 +12:00
2 changed files with 23 additions and 1 deletions

23
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,23 @@
---
name: Build static site
on: [push, pull_request]
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 install
- name: Build with next.js
run: npm run build

View File

@ -8,7 +8,6 @@
"build": "next build",
"export": "next export",
"deploy": "gh-pages -d out -t true",
"serve": "next start",
"analyze": "cross-env ANALYZE=true next build",
"lint": "next lint --fix --dir pages --dir components --dir lib --dir layouts --dir scripts",
"prepare": "husky install",