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
+2 -1
View File
@@ -34,6 +34,7 @@ async function promotion(kind: 'script' | 'plugin' | 'baseline', staged: boolean
? 'managed.dll'
: 'managed.gsc';
const { script, version: prior } = createScript({
releaseVersion: '1.0.0',
name: 'managed',
kind,
targetRelPath: relPath,
@@ -41,7 +42,7 @@ async function promotion(kind: 'script' | 'plugin' | 'baseline', staged: boolean
scopeValue: 't5',
content: before
});
const version = uploadNewVersion(script.id, after);
const version = uploadNewVersion(script.id, after, undefined, '1.0.1');
db()
.prepare('UPDATE scripts SET current_version_id = ? WHERE id = ?')
.run(version.id, script.id);