ci: fix
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
bf19f73ab0
commit
9563690006
25
.drone.yml
25
.drone.yml
|
|
@ -11,7 +11,7 @@ trigger:
|
|||
# 定义构建步骤
|
||||
steps:
|
||||
# 步骤 1: 安装 pnpm 并缓存依赖
|
||||
- name: install-dependencies
|
||||
- name: install-and-build
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
# 设置国内镜像
|
||||
|
|
@ -33,29 +33,6 @@ steps:
|
|||
# 安装依赖
|
||||
- pnpm install --frozen-lockfile
|
||||
|
||||
# 显示安装结果
|
||||
- echo "依赖安装完成"
|
||||
volumes:
|
||||
# 缓存 pnpm 依赖到宿主机
|
||||
- name: pnpm-store
|
||||
path: /drone/src/.pnpm-store
|
||||
- name: pnpm-cache
|
||||
path: /drone/src/.pnpm-cache
|
||||
- name: node-modules
|
||||
path: /drone/src/node_modules
|
||||
|
||||
- name: build-h5
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
# 设置国内镜像
|
||||
- npm config set registry https://registry.npmmirror.com
|
||||
- npm install -g pnpm@10.10.0
|
||||
- pnpm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 显示版本信息
|
||||
- node --version
|
||||
- pnpm --version
|
||||
|
||||
# 构建 H5 版本
|
||||
- pnpm run build:h5
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue