@rightkit/release 0.2.48 → 0.2.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/release",
3
- "version": "0.2.48",
3
+ "version": "0.2.49",
4
4
  "description": "Portable Right Suite release CLI/SDK: signed installers, updater artifacts, patch/update routing, hardening, R2 publish, and RightApps registration.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,6 +25,11 @@ test("CLI routes upload and legacy publish only to the upload state machine", ()
25
25
  assert.doesNotMatch(source, /first === "publish"[\s\S]{0,500}run\("release\.mjs"/);
26
26
  });
27
27
 
28
+ test("upload dry-run cannot write a verified marker", () => {
29
+ const source = readFileSync(upload, "utf8");
30
+ assert.match(source, /if \(!dryRun\)\s+writeJson\(verifiedMarker,/);
31
+ });
32
+
28
33
  test("build is tier-neutral and rejects a tier before touching a repository", () => {
29
34
  const result = spawnSync(process.execPath, [build, "--platform", "win", "--tier", "patch"], {
30
35
  cwd: mkdtempSync(path.join(os.tmpdir(), "right-build-cli-")),
@@ -442,7 +442,7 @@ test("RightKit exposes one current version manifest", () => {
442
442
  "@rightkit/legal": "0.3.0",
443
443
  "@rightkit/legal-ui": "0.1.0",
444
444
  "@rightkit/license": "0.1.6",
445
- "@rightkit/release": "0.2.48",
445
+ "@rightkit/release": "0.2.49",
446
446
  });
447
447
  assert.deepEqual(versions.legacyNpm, {
448
448
  "@rightkit/release": ["0.2.22", "0.2.29", "0.2.30", "0.2.31", "0.2.41", "0.2.42", "0.2.43", "0.2.44", "0.2.45", "0.2.46"],
@@ -15,7 +15,7 @@
15
15
  "@rightkit/legal": "0.3.0",
16
16
  "@rightkit/legal-ui": "0.1.0",
17
17
  "@rightkit/license": "0.1.6",
18
- "@rightkit/release": "0.2.48"
18
+ "@rightkit/release": "0.2.49"
19
19
  },
20
20
  "legacyNpm": {
21
21
  "@rightkit/release": ["0.2.22", "0.2.29", "0.2.30", "0.2.31", "0.2.41", "0.2.42", "0.2.43", "0.2.44", "0.2.45", "0.2.46"]
@@ -67,8 +67,8 @@ await runUploadStateMachine({
67
67
  discardBackup: async () => rmSync(backupRoot, { recursive: true, force: true }),
68
68
  },
69
69
  });
70
- writeJson(verifiedMarker, { schema: 1, releaseId, platform, tier, verifiedAt: new Date().toISOString() });
71
- console.log(`right-release upload: verified ${releaseId} tier=${tier}`);
70
+ if (!dryRun) writeJson(verifiedMarker, { schema: 1, releaseId, platform, tier, verifiedAt: new Date().toISOString() });
71
+ console.log(`right-release upload: ${dryRun ? "dry-run " : ""}verified ${releaseId} tier=${tier}`);
72
72
 
73
73
  function verifyPlatformTrust(release) {
74
74
  if (dryRun) return;