diff --git a/.cnb.yml b/.cnb.yml index 7f345a70..1394e5e2 100644 --- a/.cnb.yml +++ b/.cnb.yml @@ -13,18 +13,22 @@ $: main: web_trigger_test: - docker: - image: node:24 + image: node:22-slim imports: https://cnb.cool/risenstars/iot-env/-/blob/main/env.yml stages: - - name: npm install + - name: npm i -g corepack script: | - npm install -g pnpm - pnpm install --no-frozen-lockfile - pnpm run build - cd apps - cd web-tdesign - pnpm run build:pre + npm i -g corepack + - name: pnpm install + script: | + --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile + - name: pnpm run build + script: pnpm run build + + - name: pnpm run build:tdesign:pre + script: pnpm run build:tdesign:pre + - name: 使用 rsync 复制文件 image: tencentcom/rsync settings: @@ -45,9 +49,7 @@ main: npm install -g pnpm pnpm install --no-frozen-lockfile pnpm run build - cd apps - cd web-tdesign - pnpm run build:prod + pnpm run build:tdesign:prod - name: 使用 rsync 复制文件 image: tencentcom/rsync