支持预发布环境构建
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 39s

This commit is contained in:
kk
2026-07-15 10:46:02 +08:00
parent 2e84a00f6e
commit 729bc3c70e
4 changed files with 44 additions and 2 deletions
+4
View File
@@ -92,11 +92,15 @@ jobs:
# 3. 安装依赖 & 构建 Uni-app (H5)
###############################################
- name: Install dependencies and Build H5
env:
DEPLOY_ENV: ${{ steps.detect.outputs.env }}
run: |
set -e
# pnpm真实路径
PNPM_PATH="/root/.nvm/versions/node/v20.20.2/bin/pnpm"
echo "构建环境: DEPLOY_ENV=$DEPLOY_ENV"
# 1. 配置镜像并安装依赖
$PNPM_PATH config set registry https://registry.npmmirror.com
$PNPM_PATH install --frozen-lockfile