编辑文件 .cnb.yml

This commit is contained in:
cnb.aUOqoEV4wEA 2025-11-12 22:00:23 +08:00 committed by cnb
parent fc02085b9a
commit 503747b001
No known key found for this signature in database
GPG Key ID: 074E9EA8B7D5A8A3

View File

@ -10,6 +10,25 @@ $:
- name: init
script: npm install pnpm -g && pnpm i
main:
web_trigger_test:
- docker:
image: node:24
stages:
- name: build cache image
type: docker:cache
options:
dockerfile: cache.dockerfile
by:
- package.json
- package-lock.json
versionBy:
- package-lock.json
exports:
name: iot-manage-dashboard
- name: use cache image
image: iot-manage-dashboard
commands:
- cp -r "$NODE_PATH" ./node_modules
web_trigger_prod:
- docker:
image: node:24