Skip to content

Merge pull request #10 from tomymaritano/chore/react-use-client #36

Merge pull request #10 from tomymaritano/chore/react-use-client

Merge pull request #10 from tomymaritano/chore/react-use-client #36

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# Cancel superseded runs on the same ref to save CI minutes.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Build · Typecheck · Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
# Version is read from the root package.json "packageManager" field.
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Verify (build + typecheck + test)
run: pnpm verify
docs:
name: Docs build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build libraries (docs consume their types)
run: pnpm --filter "./packages/*" build
- name: Build docs site
run: pnpm --filter @cairn/docs build
env:
NEXT_TELEMETRY_DISABLED: "1"