1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-02 18:20:26 +08:00

ci: 流水线新增缓存机制,优化依赖安装脚本

This commit is contained in:
chu fan
2023-09-28 09:32:43 +08:00
parent 343a472837
commit 0ae08d6b4a
4 changed files with 21 additions and 13 deletions

View File

@@ -30,16 +30,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'
run: |
pnpm i --frozen-lockfile --registry https://registry.npmmirror.com
- name: Cache Dependencies
uses: actions/cache@v3

View File

@@ -34,16 +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'
run: |
pnpm i --frozen-lockfile --registry https://registry.npmmirror.com
- name: Cache Dependencies
uses: actions/cache@v3