📦 deps(thirdparty): update snapshots

This commit is contained in:
ci[bot]
2026-07-20 00:03:02 +00:00
parent 47ce7f78dc
commit 2c00adccd5
1216 changed files with 10376 additions and 90058 deletions
@@ -171,6 +171,14 @@ function readPackageVersion(projectRoot) {
return packageJson.version;
}
function isPrereleaseVersion(version) {
const match = String(version).match(
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/u,
);
if (!match) throw new Error(`Invalid semantic version: ${version}`);
return Boolean(match[4]);
}
function ensureChangelogSection(projectRoot, version) {
const changelogPath = path.join(projectRoot, "CHANGELOG.md");
const changelogContent = fs.readFileSync(changelogPath, "utf8");
@@ -367,7 +375,9 @@ function publishRelease(projectRoot, version) {
console.log(`[release] ${tagName} is already published.`);
return;
}
runCommand("gh", ["release", "create", tagName, "--title", tagName, "--notes-file", notesPath], projectRoot);
const releaseArgs = ["release", "create", tagName, "--title", tagName, "--notes-file", notesPath];
if (isPrereleaseVersion(version)) releaseArgs.push("--prerelease");
runCommand("gh", releaseArgs, projectRoot);
console.log(`[release] Published ${tagName}.`);
}
@@ -408,6 +418,7 @@ if (require.main === module) {
module.exports = {
localTagTarget,
remoteTagTarget,
isPrereleaseVersion,
selectMergedReleaseCandidate,
validateReleaseSuccessors,
};