mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 09:20:23 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user