mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(scripts/release): add unstable flag when running ./tools/format.js (#14743)
This commit is contained in:
parent
1c44f4060e
commit
da416f0249
2 changed files with 5 additions and 4 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue