Skip to content

Commit

Permalink
chore: 流水线下载依赖新增Cache配置
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdapl authored Sep 28, 2023
2 parents a627091 + 26111af commit 05bbbf8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ jobs:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.20.2

- name: PNPM Install
uses: pnpm/action-setup@v2
with:
version: 7
run_install: true

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.20.2
cache: 'pnpm'

- name: Cache Dependencies
uses: actions/cache@v3
with:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ jobs:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.20.2

- name: PNPM Install
uses: pnpm/action-setup@v2
with:
version: 7
run_install: true

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.20.2
cache: 'pnpm'

- name: Cache Dependencies
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 05bbbf8

Please sign in to comment.