构建前按 OSS 版本递增 AGC patch
Project CI / Repository checks (pull_request) Failing after 9s
Project CI / Backend tests (pull_request) Failing after 9s
Project CI / Frontend tests (pull_request) Successful in 5m13s
Project CI / Native shell tests (pull_request) Failing after 17m40s

构建前读取 OSS latest.json 并选择较高版本递增 patch

同步更新 AGC package、Tauri 与 Cargo 版本字段

让一键上传复用版本准备流程并更新发布文档

补充版本计算、配置校验与清单生成测试
This commit is contained in:
2026-08-31 15:22:38 +08:00
parent 4a66677547
commit fea7a72246
6 changed files with 171 additions and 21 deletions
+8 -6
View File
@@ -173,12 +173,14 @@ export function collectNpmWorkspaceErrors(rootDir) {
`${manifestPath}: name must be ${WORKSPACE_NAMES[workspacePath]}, received ${String(manifest.name)}`,
);
}
const expectedWorkspaceVersion =
workspacePath === 'apps/ai-game-creator-shell' ? '0.1.12' : '0.1.0';
if (manifest.version !== expectedWorkspaceVersion) {
errors.push(
`${manifestPath}: workspace version must be ${expectedWorkspaceVersion}`,
);
if (workspacePath === 'apps/ai-game-creator-shell') {
if (!/^\d+\.\d+\.\d+$/u.test(manifest.version ?? '')) {
errors.push(
`${manifestPath}: workspace version must be a three-part semver`,
);
}
} else if (manifest.version !== '0.1.0') {
errors.push(`${manifestPath}: workspace version must be 0.1.0`);
}
for (const nestedLockfile of findNestedLockfiles(rootDir, workspacePath)) {