Skip to content

chore(deps): pin dependencies #15

chore(deps): pin dependencies

chore(deps): pin dependencies #15

Workflow file for this run

name: CHECK-CHINESE-TEXT
env:
NODE_OPTIONS: --max-old-space-size=6144
on:
push:
branches: [main]
paths:
- '**/zh/**/*.md'
pull_request:
branches: [main]
types: [opened]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 20
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Install Node.js (${{ matrix.node_version }})
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Linter zh markdown
run: pnpm run lint:zh