diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-07-19 16:35:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 16:35:58 -0400 |
commit | 9b4ae0868d5f5a5ef1d49843737f950bbb841cbf (patch) | |
tree | b3c2f77809b8e8f7c556fa413e54be26f0b5a17c /tools/release/01_bump_crate_versions.ts | |
parent | 1bdf5a2081b1567ed73d8f85edae53c3f9724e2b (diff) |
chore: update deno automation to 0.12 (#15248)
Diffstat (limited to 'tools/release/01_bump_crate_versions.ts')
-rwxr-xr-x | tools/release/01_bump_crate_versions.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/release/01_bump_crate_versions.ts b/tools/release/01_bump_crate_versions.ts index b2d160fc6..d2446d44c 100755 --- a/tools/release/01_bump_crate_versions.ts +++ b/tools/release/01_bump_crate_versions.ts @@ -1,7 +1,7 @@ -#!/usr/bin/env -S deno run --allow-read --allow-write --allow-run=cargo,git,deno --allow-net --no-check --lock=tools/deno.lock.json +#!/usr/bin/env -S deno run -A --lock=tools/deno.lock.json // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. import { DenoWorkspace } from "./deno_workspace.ts"; -import { GitLogOutput, path, semver } from "./deps.ts"; +import { $, GitLogOutput, semver } from "./deps.ts"; const workspace = await DenoWorkspace.load(); const repo = workspace.repo; @@ -25,7 +25,7 @@ for (const crate of workspace.getCliDependencyCrates()) { } // update the std version used in the code -console.log("Updating std version..."); +$.logStep("Updating std version..."); await updateStdVersion(); // update the lock file @@ -33,12 +33,12 @@ await workspace.getCliCrate().cargoUpdate("--workspace"); // try to update the Releases.md markdown text try { - console.log("Updating Releases.md..."); + $.logStep("Updating Releases.md..."); await updateReleasesMd(); } catch (err) { - console.error(err); - console.error( - "Updating Releases.md failed. Please manually run " + + $.log(err); + $.logError( + "Error Updating Releases.md failed. Please manually run " + "`git log --oneline VERSION_FROM..VERSION_TO` and " + "use the output to update Releases.md", ); @@ -97,7 +97,7 @@ async function getGitLog() { } async function updateStdVersion() { - const compatFilePath = path.join(cliCrate.folderPath, "compat/mod.rs"); + const compatFilePath = $.path.join(cliCrate.folderPath, "compat/mod.rs"); const text = await Deno.readTextFile(compatFilePath); const versionRe = /std@([0-9]+\.[0-9]+\.[0-9]+)/; const stdVersionText = versionRe.exec(text)?.[1]; |