mirror of
https://github.com/shy3130/tick-stock-panel.git
synced 2026-11-02 10:26:13 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user