Require release versions for script uploads
CI / checks (push) Successful in 5m26s

This commit is contained in:
2026-10-12 18:46:57 -04:00
parent ffda04f276
commit 2f52dcb1ef
50 changed files with 871 additions and 113 deletions
+5 -2
View File
@@ -1,9 +1,12 @@
/** Keep the upload number visible: two builds may share a publisher's release tag. */
export function artifactVersionLabel(
version: { version: number; release_version?: string | null } | null | undefined
version: { version: number; release_version?: string | null } | null | undefined,
kind?: string
): string {
if (!version) return '—';
return version.release_version
? `${version.release_version} (upload ${version.version})`
: `v${version.version}`;
: kind === 'script'
? `Unversioned (upload ${version.version})`
: `v${version.version}`;
}