Compare commits
2 Commits
a8697c2fc2
...
2c0df4bf64
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c0df4bf64 | |||
| 5d545d3dcd |
23
.github/workflows/build.yml
vendored
Normal file
23
.github/workflows/build.yml
vendored
Normal 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
|
||||
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user