m2: l1 anchoring #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docs CI | |
| on: | |
| pull_request: | |
| paths: | |
| - apps/docs/** | |
| - book/** | |
| - .github/workflows/ci-docs.yml | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| vitepress: | |
| name: Vitepress Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install | |
| - name: Build docs | |
| run: pnpm --filter docs run build | |
| mdbook: | |
| name: mdBook Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: peaceiris/actions-mdbook@v2 | |
| with: | |
| mdbook-version: latest | |
| - name: Install mdbook-mermaid | |
| run: | | |
| curl -OL https://github.com/badboy/mdbook-mermaid/releases/download/v0.17.0/mdbook-mermaid-v0.17.0-x86_64-unknown-linux-gnu.tar.gz | |
| tar -xzf mdbook-mermaid-v0.17.0-x86_64-unknown-linux-gnu.tar.gz -C /usr/local/bin | |
| - name: Build book | |
| run: mdbook build book |