2022-07-19 16:35:58 -04:00
|
|
|
#!/usr/bin/env -S deno run -A --lock=tools/deno.lock.json
|
2022-04-02 11:25:12 -04:00
|
|
|
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
|
2022-07-19 16:35:58 -04:00
|
|
|
import { $ } from "./deps.ts";
|
2022-04-02 11:25:12 -04:00
|
|
|
import { DenoWorkspace } from "./deno_workspace.ts";
|
|
|
|
|
|
|
|
const workspace = await DenoWorkspace.load();
|
|
|
|
|
|
|
|
// create a release notes file for the GH release draft
|
|
|
|
await Deno.writeTextFile(
|
2022-07-19 16:35:58 -04:00
|
|
|
$.path.join(DenoWorkspace.rootDirPath, "./target/release/release-notes.md"),
|
2022-04-02 11:25:12 -04:00
|
|
|
workspace.getReleasesMdFile().getLatestReleaseText().fullText,
|
|
|
|
);
|