chore: 构建添加缓存
This commit is contained in:
parent
00afaad52a
commit
c915b63e6a
4
.cnb.yml
4
.cnb.yml
@ -14,6 +14,8 @@ main:
|
||||
web_trigger_test:
|
||||
- docker:
|
||||
image: node:22-slim
|
||||
volumes:
|
||||
- /pnpm/store
|
||||
imports: https://cnb.cool/risenstars/iot-env/-/blob/main/env.yml
|
||||
stages:
|
||||
- name: npm i -g corepack
|
||||
@ -21,7 +23,7 @@ main:
|
||||
npm i -g corepack
|
||||
- name: pnpm install
|
||||
script: |
|
||||
--mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
- name: pnpm run build
|
||||
script: pnpm run build
|
||||
|
||||
Loading…
Reference in New Issue
Block a user