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
@@ -275,6 +275,7 @@ describe('asynchronous native launch preparation', () => {
kind === 'baseline'
? baseline
: createScript({
releaseVersion: '1.0.0',
name: `Launch ${kind}`,
kind,
targetRelPath:
@@ -299,7 +300,7 @@ describe('asynchronous native launch preparation', () => {
? 'set rcon_password "password"\nset sv_voice "0"\n'
: 'newly promoted file'
);
const latest = uploadNewVersion(script.id, content);
const latest = uploadNewVersion(script.id, content, undefined, '1.0.1');
db()
.prepare('UPDATE scripts SET current_version_id=? WHERE id=?')
.run(latest.id, script.id);