123
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
2025-07-05 20:48:24 +08:00
parent a581cd7c51
commit bd25138da0
2 changed files with 91 additions and 9 deletions

View File

@ -8,11 +8,9 @@ steps:
- name: 构建项目
image: node:18-alpine
commands:
- npm install
- rm -rf node_modules
- npm ci
- npm run build
volumes:
- name: node_modules_cache
path: /drone/src/node_modules
# 第二步上传静态资源到腾讯云COS (使用另一个插件)
- name: 静态资源上传到cos
@ -74,11 +72,6 @@ steps:
- master
- dev
# 定义数据卷用于缓存node_modules
volumes:
- name: node_modules_cache
host:
path: /tmp/drone_cache/node_modules
# 触发条件
trigger: