fix(frontend): 同步关于页版本号

This commit is contained in:
techotaku39
2026-05-26 15:54:05 +08:00
parent f2d8ece0c1
commit 9d1a7cd699
6 changed files with 42 additions and 1 deletions

View File

@@ -35,6 +35,10 @@ COPY ./backend /tmp/backend
ARG BASE_REGISTRY=docker.io
FROM ${BASE_REGISTRY}/library/node:20-alpine AS frontend-builder
# 可由发布 workflow 从 git tag 注入,用于前端 About 页展示版本;未传时由 Vite 回退读取 tauri.conf.json。
ARG VITE_APP_VERSION=
ENV VITE_APP_VERSION=${VITE_APP_VERSION}
# pnpm 版本 pin 到 9 系列:
# - lockfile (BillNote_frontend/pnpm-lock.yaml) 是 lockfileVersion '9.0',由 pnpm 9 生成
# - pnpm 11+ 要求 Node 22+,与 node:20 不兼容ERR_UNKNOWN_BUILTIN_MODULE