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