summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-05-27 12:14:37 -0400
committerGitHub <noreply@github.com>2022-05-27 12:14:37 -0400
commitda416f0249977ee58f18930de580a3c7cf110beb (patch)
treead605eb313c8ef76a14d45f1edb84c32e7dcb3dc
parent1c44f4060edb23898bb685ae49a90f658c6c2c05 (diff)
fix(scripts/release): add unstable flag when running ./tools/format.js (#14743)
-rwxr-xr-xtools/release/01_bump_crate_versions.ts8
-rw-r--r--tools/release/deno_workspace.ts1
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",