Skip to content

Misc Updates

Misc Updates #1041

Workflow file for this run

name: CI
on:
pull_request:
env:
CI: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node 18
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: "yarn"
- name: Install packages
run: yarn install --frozen-lockfile
- name: Build Contentlayer
run: |
yarn contentlayer build 2>&1 | tee build.log
if grep -q "Warning: Found .* problems" build.log; then
echo "Contentlayer build produced warnings. Failing build."
exit 1
fi
- name: Build Next.js
run: yarn next build