chore: 优化流水线脚本
This commit is contained in:
parent
642899b920
commit
00afaad52a
24
.cnb.yml
24
.cnb.yml
@ -13,18 +13,22 @@ $:
|
|||||||
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
|
||||||
settings:
|
settings:
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user