chore: 优化流水线脚本

This commit is contained in:
cnb.aUOqoEV4wEA 2025-11-12 12:02:24 +08:00
parent 642899b920
commit 00afaad52a

View File

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