构建前按 OSS 版本递增 AGC patch
构建前读取 OSS latest.json 并选择较高版本递增 patch 同步更新 AGC package、Tauri 与 Cargo 版本字段 让一键上传复用版本准备流程并更新发布文档 补充版本计算、配置校验与清单生成测试
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user