mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
051ef598f6
Co-authored-by: Alois Klink <alois@aloisklink.com>
38 lines
839 B
YAML
38 lines
839 B
YAML
name: Build Vitepress docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release/*
|
|
pull_request:
|
|
merge_group:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: pnpm
|
|
node-version-file: '.node-version'
|
|
|
|
- name: Install Packages
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Verify release version
|
|
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release')) }}
|
|
run: pnpm --filter mermaid run docs:verify-version
|
|
|
|
- name: Run Build
|
|
run: pnpm --filter mermaid run docs:build:vitepress
|