更新: 编译变量导入

This commit is contained in:
moux1024 2025-09-29 15:51:19 +08:00
parent a096d4a7bf
commit e6a3916f66
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ if [ "$current_branch" = "$BRANCH_NAME" ]; then
# 安装依赖并构建(通过 env-cmd 注入 .env.development 与 NODE_ENV
yarn install
npx --yes env-cmd -f .env.development -e development bash -lc 'export NODE_ENV=development; yarn build'
npx --yes env-cmd -f .env.development bash -lc 'export NODE_ENV=development; yarn build'
# 准备dist目录
mkdir -p dist

View File

@ -40,7 +40,7 @@ if [ "$current_branch" = "$BRANCH_NAME" ]; then
# 安装依赖并构建(通过 env-cmd 注入 .env.production 与 NODE_ENV
yarn install
npx --yes env-cmd -f .env.production -e production bash -lc 'export NODE_ENV=production; yarn build'
npx --yes env-cmd -f .env.production bash -lc 'export NODE_ENV=production; yarn build'
# 准备dist目录
mkdir -p dist