1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-01 01:30:48 +08:00

feat: 优化流水线缓存 (#55)

This commit is contained in:
mmdapl
2023-10-10 17:34:47 +08:00
committed by GitHub
parent 384a752474
commit dadfea48ce
3 changed files with 29 additions and 83 deletions

View File

@@ -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