forked from mirror/NitWikit
?
This commit is contained in:
parent
5525be6002
commit
44bbdcca1a
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@ -10,18 +10,12 @@ jobs:
|
||||
# 拉取代码
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Use Node.js 20
|
||||
uses: actions/setup-node@v3
|
||||
- name: "setup pnpm"
|
||||
uses: "pnpm/action-setup@v4"
|
||||
- name: "setup node"
|
||||
|
||||
uses: "actions/setup-node@v4"
|
||||
with:
|
||||
node-version: 20
|
||||
# 启用缓存加速
|
||||
- name: Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
# 安装 Npm 并构建
|
||||
- name: Install and Build
|
||||
run: npm install && npm run build
|
||||
run: pnpm install && pnpm run build
|
||||
|
20
.github/workflows/wiki-deploy.yml
vendored
20
.github/workflows/wiki-deploy.yml
vendored
@ -27,21 +27,17 @@ jobs:
|
||||
# 拉取代码
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Use Node.js 20
|
||||
uses: actions/setup-node@v3
|
||||
- name: "setup pnpm"
|
||||
uses: "pnpm/action-setup@v4"
|
||||
- name: "setup node"
|
||||
uses: "actions/setup-node@v4"
|
||||
with:
|
||||
node-version: 20
|
||||
# 启用缓存加速部署
|
||||
- name: Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
# 安装 Npm 并构建
|
||||
- name: Install and Build
|
||||
run: npm install && npm run build
|
||||
- name: Install
|
||||
run: pnpm install
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
# 部署
|
||||
- name: Deploy
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
|
Loading…
Reference in New Issue
Block a user