mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-01 01:30:48 +08:00
feat: 优化流水线缓存 (#55)
This commit is contained in:
21
.github/workflows/CI.yml
vendored
21
.github/workflows/CI.yml
vendored
@@ -33,22 +33,21 @@ jobs:
|
||||
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
|
||||
fetch-depth: 0
|
||||
|
||||
## 依赖下载完成后,或执行思维导图编译
|
||||
- name: PNPM Install
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 7
|
||||
run_install: |
|
||||
args: [--frozen-lockfile, --registry=https://registry.npmmirror.com]
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.18.0
|
||||
## 淘宝镜像加速
|
||||
registry-url: 'https://registry.npmmirror.com'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pnpm i --frozen-lockfile --registry https://registry.npmmirror.com
|
||||
# - name: Install Node.js
|
||||
# uses: actions/setup-node@v3
|
||||
# with:
|
||||
# node-version: 18.18.0
|
||||
# ## 淘宝镜像加速
|
||||
# registry-url: 'https://registry.npmmirror.com'
|
||||
# cache: 'pnpm'
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: actions/cache@v3
|
||||
|
||||
Reference in New Issue
Block a user