chore: 构建添加缓存

This commit is contained in:
cnb.aUOqoEV4wEA 2025-11-12 12:07:31 +08:00
parent 00afaad52a
commit c915b63e6a

View File

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