chore: initialize from frontend template 4dc033c

This commit is contained in:
DongHyeonka
2026-08-13 18:23:26 +09:00
commit 40107eec84
897 changed files with 234824 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { readFile } from "node:fs/promises";
import {
RELEASE_CANDIDATE_MANIFEST_PATH,
verifyReleaseCandidate,
} from "./lib/release-candidate.ts";
let document: unknown = null;
try {
document = JSON.parse(
await readFile(RELEASE_CANDIDATE_MANIFEST_PATH, "utf8"),
);
} catch {
// The verifier reports a single fail-closed schema error below.
}
const result = await verifyReleaseCandidate(document);
if (result.failures.length > 0) {
process.stderr.write(
`Release candidate verification failed:\n- ${result.failures.join("\n- ")}\n`,
);
process.exit(1);
}
process.stdout.write(
`Release candidate verification: PASS (${result.manifest!.distSha256})\n`,
);