Skip to content

test

test #13

Workflow file for this run

name: Build on Ubuntu with Node.js 22, pnpm 10
on:
pull_request:
branches: ["main"]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: set pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: set Node.js
uses: actions/setup-node@v4
with:
# 选择要使用的 node 版本
node-version: 22
# 缓存 pnpm 依赖
cache: pnpm
cache-dependency-path: docs/pnpm-lock.yaml
- name: install
run: pnpm install --frozen-lockfile
working-directory: ./docs
- name: build
run: pnpm docs:build
working-directory: ./docs