Release: trim duplicate preflight work (#59117)

* Release: skip duplicate runtime-deps staging

* Release: trim public mac validation workflow

* Release: require promoted npm publish

* Release: verify promoted npm provenance

* Release: restore public mac validation build

* Release: skip pack check on npm promote

* Release: skip pack check on npm promote
This commit is contained in:
Onur
2026-04-01 19:24:37 +02:00
committed by GitHub
parent da64a978e5
commit f1f5a3fcf4
6 changed files with 140 additions and 48 deletions

View File

@@ -10,6 +10,7 @@ import {
resolveNpmDistTagMirrorAuth,
resolveNpmPublishPlan,
resolveNpmCommandInvocation,
shouldSkipPackedTarballValidation,
utcCalendarDayDistance,
} from "../scripts/openclaw-npm-release-check.ts";
@@ -155,6 +156,28 @@ describe("resolveNpmDistTagMirrorAuth", () => {
});
});
describe("shouldSkipPackedTarballValidation", () => {
it("defaults to full pack validation", () => {
expect(shouldSkipPackedTarballValidation({})).toBe(false);
});
it("accepts truthy values for metadata-only validation", () => {
expect(
shouldSkipPackedTarballValidation({
OPENCLAW_NPM_RELEASE_SKIP_PACK_CHECK: "1",
}),
).toBe(true);
});
it("treats false-like values as disabled", () => {
expect(
shouldSkipPackedTarballValidation({
OPENCLAW_NPM_RELEASE_SKIP_PACK_CHECK: "false",
}),
).toBe(false);
});
});
describe("compareReleaseVersions", () => {
it("treats stable as newer than same-day beta", () => {
expect(compareReleaseVersions("2026.3.29", "2026.3.29-beta.2")).toBe(1);