From 38e256c4fb68da5ae1afc5bb402a62040e657406 Mon Sep 17 00:00:00 2001 From: WrBug Date: Wed, 21 Jan 2026 04:52:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=97=B6=E7=89=88=E6=9C=AC=E5=8F=B7=E6=9C=AA?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E4=BC=A0=E9=80=92=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 GitHub Actions 前端构建步骤中添加 VERSION、GIT_TAG 环境变量 - 确保版本号能正确注入到前端构建产物中 --- .github/workflows/docker-build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 39a3b48..2fa1086 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -111,11 +111,16 @@ jobs: node-version: '18' - name: Build Frontend + env: + VERSION: ${{ steps.extract_version.outputs.VERSION }} + GIT_TAG: ${{ steps.extract_version.outputs.TAG }} + GITHUB_REPO_URL: https://github.com/WrBug/PolyHermes run: | cd frontend npm ci npm run build echo "✅ 前端构建完成" + echo "📦 版本信息: VERSION=${{ steps.extract_version.outputs.VERSION }}, GIT_TAG=${{ steps.extract_version.outputs.TAG }}" du -sh dist/ # ============ 打包更新包 ============