forked from mirror/NitWikit
parent
f1c9ce1db7
commit
00478ca58a
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -14,10 +14,20 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: "setup pnpm"
|
- name: "setup pnpm"
|
||||||
uses: "pnpm/action-setup@v4"
|
uses: "pnpm/action-setup@v4"
|
||||||
- name: "setup node"
|
|
||||||
|
|
||||||
|
- name: "setup node"
|
||||||
uses: "actions/setup-node@v4"
|
uses: "actions/setup-node@v4"
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- name: Install and Build
|
|
||||||
run: pnpm install && pnpm run --parallel build
|
- name: "Install"
|
||||||
|
run: "pnpm install"
|
||||||
|
|
||||||
|
- name: "MarkdownLint Check"
|
||||||
|
uses: DavidAnson/markdownlint-cli2-action@v17
|
||||||
|
with:
|
||||||
|
fix: true
|
||||||
|
globs: 'docs*/**/*.md'
|
||||||
|
|
||||||
|
- name: "Build"
|
||||||
|
run: "pnpm run --parallel build"
|
||||||
|
15
.github/workflows/wiki-deploy.yml
vendored
15
.github/workflows/wiki-deploy.yml
vendored
@ -29,17 +29,30 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: "setup pnpm"
|
- name: "setup pnpm"
|
||||||
uses: "pnpm/action-setup@v4"
|
uses: "pnpm/action-setup@v4"
|
||||||
|
|
||||||
- name: "setup node"
|
- name: "setup node"
|
||||||
uses: "actions/setup-node@v4"
|
uses: "actions/setup-node@v4"
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
# 安装 Npm 并构建
|
|
||||||
|
# 安装 npm 包
|
||||||
- name: Install
|
- name: Install
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
|
# MarkdownLint 检查
|
||||||
|
- name: "MarkdownLint Check"
|
||||||
|
uses: "DavidAnson/markdownlint-cli2-action@v17"
|
||||||
|
with:
|
||||||
|
fix: true
|
||||||
|
globs: 'docs*/**/*.md'
|
||||||
|
|
||||||
|
# 构建
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm run --parallel build
|
run: pnpm run --parallel build
|
||||||
|
|
||||||
# 部署
|
# 部署
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
|
Loading…
Reference in New Issue
Block a user