fix: promote immutable verified release bundles
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { mkdir } from "node:fs/promises";
|
||||
|
||||
import { writeValidatedJsonArtifact } from "./lib/validated-json-artifact.ts";
|
||||
import {
|
||||
createReleaseCandidateManifest,
|
||||
RELEASE_CANDIDATE_MANIFEST_PATH,
|
||||
releaseCandidateManifestSchema,
|
||||
} from "./lib/release-candidate.ts";
|
||||
|
||||
const manifest = await createReleaseCandidateManifest();
|
||||
await mkdir("artifacts/release", { recursive: true });
|
||||
await writeValidatedJsonArtifact({
|
||||
path: RELEASE_CANDIDATE_MANIFEST_PATH,
|
||||
schema: releaseCandidateManifestSchema,
|
||||
value: manifest,
|
||||
});
|
||||
process.stdout.write(
|
||||
`Immutable release candidate: ${manifest.distSha256} (${manifest.files.length} files)\n`,
|
||||
);
|
||||
Reference in New Issue
Block a user