Skip to content

Scaffold out initial documentation website #3

Scaffold out initial documentation website

Scaffold out initial documentation website #3

Workflow file for this run

name: Website CI
on:
pull_request:
branches:
- main
paths:
- website/**
- .github/workflows/deploy-website.yaml
push:
branches-ignore:
- main
paths:
- website/**
- .github/workflows/deploy-website.yaml
# Sets base permissions of the GITHUB_TOKEN
permissions:
contents: read
defaults:
run:
working-directory: website
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
# with:
# fetch-depth: 0 # Not needed if lastUpdated is not enabled
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
package_json_file: website/package.json
run_install: true
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: "website/.node-version"
cache-dependency-path: "website/pnpm-lock.yaml"
check-latest: true
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build with VitePress
run: pnpm build