Skip to content

Sync to dev@49eea78 #334

Sync to dev@49eea78

Sync to dev@49eea78 #334

Workflow file for this run

name: GitHub Pages for PR
on: [pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: 📦 Install Dependencies
run: yarn
- name: 🧐 Check Code Types
run: yarn docs:tsc
- name: 🔧 Check Code Format
run: |
yarn docs:eslint && exit 0
echo 'Error: 请执行 `pnpm run docs:format` 以格式化代码' 1>&2
exit 1
- name: 🌌 Build VitePress Docs
run: yarn docs:build