Skip to content

feat: Implement CI workflow for content validation and build process;… #1

feat: Implement CI workflow for content validation and build process;…

feat: Implement CI workflow for content validation and build process;… #1

Workflow file for this run

name: CI
on:
pull_request:
branches: [main, develop]
push:
branches: [main, develop]
permissions:
contents: read
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Validate blog content
run: node scripts/validate-content.mjs
- name: TypeScript type check
run: pnpm typecheck
- name: Build website
env:
DOCUSAURUS_ON_BROKEN_LINKS: throw
run: pnpm build