fix(release): #513 版本号单源 — 从 frontend/package.json 派生

- 新增 scripts/sync_versions.py: VERSION / backend/pyproject.toml / _FALLBACK_VERSION 三处伴生标记由 package.json 派生, --check 供 CI/本地校验
- release.yml / docker.yml 构建前先跑同步脚本, 杜绝只改 package.json 时产物版本漂移
- Dockerfile 运行时改读 /app/frontend/package.json
This commit is contained in:
shy3130
2026-10-27 18:45:09 +08:00
parent 6d1c6cedc4
commit 1c1a3b44c9
4 changed files with 93 additions and 0 deletions
+5
View File
@@ -98,6 +98,11 @@ jobs:
- name: 检出代码
uses: actions/checkout@v4
# issue #513: 构建产物内的 VERSION / pyproject / _FALLBACK_VERSION 从
# frontend/package.json 派生, 防止发版只改 package.json 时版本漂移。
- name: 同步版本号 (从 frontend/package.json 派生)
run: python3 scripts/sync_versions.py
- name: 安装 pnpm
uses: pnpm/action-setup@v4
with: