chore: 优化流水线脚本

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

View File

@ -13,17 +13,21 @@ $:
main: main:
web_trigger_test: web_trigger_test:
- docker: - docker:
image: node:24 image: node:22-slim
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 install - name: npm i -g corepack
script: | script: |
npm install -g pnpm npm i -g corepack
pnpm install --no-frozen-lockfile - name: pnpm install
pnpm run build script: |
cd apps --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
cd web-tdesign
pnpm run build:pre - name: pnpm run build
script: pnpm run build
- name: pnpm run build:tdesign:pre
script: pnpm run build:tdesign:pre
- name: 使用 rsync 复制文件 - name: 使用 rsync 复制文件
image: tencentcom/rsync image: tencentcom/rsync
@ -45,9 +49,7 @@ main:
npm install -g pnpm npm install -g pnpm
pnpm install --no-frozen-lockfile pnpm install --no-frozen-lockfile
pnpm run build pnpm run build
cd apps pnpm run build:tdesign:prod
cd web-tdesign
pnpm run build:prod
- name: 使用 rsync 复制文件 - name: 使用 rsync 复制文件
image: tencentcom/rsync image: tencentcom/rsync