From da416f0249977ee58f18930de580a3c7cf110beb Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 27 May 2022 12:14:37 -0400 Subject: fix(scripts/release): add unstable flag when running ./tools/format.js (#14743) --- tools/release/01_bump_crate_versions.ts | 8 ++++---- tools/release/deno_workspace.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/release/01_bump_crate_versions.ts b/tools/release/01_bump_crate_versions.ts index 01aedb166..b2d160fc6 100755 --- a/tools/release/01_bump_crate_versions.ts +++ b/tools/release/01_bump_crate_versions.ts @@ -8,10 +8,6 @@ const repo = workspace.repo; const cliCrate = workspace.getCliCrate(); const originalCliVersion = cliCrate.version; -// update the std version used in the code -console.log("Updating std version..."); -await updateStdVersion(); - // increment the cli version if (Deno.args.some((a) => a === "--patch")) { await cliCrate.increment("patch"); @@ -28,6 +24,10 @@ for (const crate of workspace.getCliDependencyCrates()) { await crate.increment("minor"); } +// update the std version used in the code +console.log("Updating std version..."); +await updateStdVersion(); + // update the lock file await workspace.getCliCrate().cargoUpdate("--workspace"); diff --git a/tools/release/deno_workspace.ts b/tools/release/deno_workspace.ts index 389d8a1e1..2ffac6cca 100644 --- a/tools/release/deno_workspace.ts +++ b/tools/release/deno_workspace.ts @@ -56,6 +56,7 @@ export class DenoWorkspace { return this.#repo.runCommandWithOutput([ "deno", "run", + "--unstable", "--allow-write", "--allow-read", "--allow-run", -- cgit v1.2.3