Skip to content

Commit 05bbbf8

Browse files
authored
chore: 流水线下载依赖新增Cache配置
2 parents a627091 + 26111af commit 05bbbf8

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/CD.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ jobs:
3434
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
3535
fetch-depth: 0
3636

37-
- name: Install Node.js
38-
uses: actions/setup-node@v3
39-
with:
40-
node-version: 16.20.2
41-
4237
- name: PNPM Install
4338
uses: pnpm/action-setup@v2
4439
with:
4540
version: 7
4641
run_install: true
4742

43+
- name: Install Node.js
44+
uses: actions/setup-node@v3
45+
with:
46+
node-version: 16.20.2
47+
cache: 'pnpm'
48+
4849
- name: Cache Dependencies
4950
uses: actions/cache@v3
5051
with:

.github/workflows/CI.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ jobs:
3434
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
3535
fetch-depth: 0
3636

37-
- name: Install Node.js
38-
uses: actions/setup-node@v3
39-
with:
40-
node-version: 16.20.2
41-
4237
- name: PNPM Install
4338
uses: pnpm/action-setup@v2
4439
with:
4540
version: 7
4641
run_install: true
4742

43+
- name: Install Node.js
44+
uses: actions/setup-node@v3
45+
with:
46+
node-version: 16.20.2
47+
cache: 'pnpm'
48+
4849
- name: Cache Dependencies
4950
uses: actions/cache@v3
5051
with:

0 commit comments

Comments
 (0)