升级:VitePress 版本升级为 v1.0.0-alpha.17,并将 yarn 切换为 pnpm(Performance NPM,高性能的 npm)
This commit is contained in:
24
.github/workflows/deploy-pages.yml
vendored
24
.github/workflows/deploy-pages.yml
vendored
@@ -7,9 +7,9 @@ on:
|
||||
# pr时执行
|
||||
pull_request:
|
||||
branches: [main, master]
|
||||
# 定时执行 00:01
|
||||
# 定时执行 00:00
|
||||
schedule:
|
||||
- cron: 1 0 * * *
|
||||
- cron: 0 0 * * *
|
||||
# 可手动执行
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -21,19 +21,25 @@ jobs:
|
||||
# 1、检出源码
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
# 2、安装 Node 环境
|
||||
# 2、安装 PNPM
|
||||
- name: Setup PNPM
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: latest
|
||||
# 3、安装 Node 环境
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: yarn
|
||||
# 3、安装依赖
|
||||
registry-url: https://registry.npmjs.org
|
||||
cache: pnpm
|
||||
# 4、安装依赖
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
# 4、打包
|
||||
run: pnpm i --frozen-lockfile
|
||||
# 5、打包
|
||||
- name: Build
|
||||
run: yarn build
|
||||
# 5、部署 GitHub Pages
|
||||
run: pnpm build
|
||||
# 6、部署 GitHub Pages
|
||||
- name: Deploy GitHub Pages
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
|
Reference in New Issue
Block a user