1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

fix(scripts/release): add unstable flag when running ./tools/format.js (#14743)

This commit is contained in:
David Sherret 2022-05-27 12:14:37 -04:00 committed by GitHub
parent 1c44f4060e
commit da416f0249
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -8,10 +8,6 @@ const repo = workspace.repo;
const cliCrate = workspace.getCliCrate(); const cliCrate = workspace.getCliCrate();
const originalCliVersion = cliCrate.version; const originalCliVersion = cliCrate.version;
// update the std version used in the code
console.log("Updating std version...");
await updateStdVersion();
// increment the cli version // increment the cli version
if (Deno.args.some((a) => a === "--patch")) { if (Deno.args.some((a) => a === "--patch")) {
await cliCrate.increment("patch"); await cliCrate.increment("patch");
@ -28,6 +24,10 @@ for (const crate of workspace.getCliDependencyCrates()) {
await crate.increment("minor"); await crate.increment("minor");
} }
// update the std version used in the code
console.log("Updating std version...");
await updateStdVersion();
// update the lock file // update the lock file
await workspace.getCliCrate().cargoUpdate("--workspace"); await workspace.getCliCrate().cargoUpdate("--workspace");

View file

@ -56,6 +56,7 @@ export class DenoWorkspace {
return this.#repo.runCommandWithOutput([ return this.#repo.runCommandWithOutput([
"deno", "deno",
"run", "run",
"--unstable",
"--allow-write", "--allow-write",
"--allow-read", "--allow-read",
"--allow-run", "--allow-run",