mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
chore: fix deno_lib version bump for release and verify Deno binary version outputs expected version (#29540)
Some checks are pending
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
Some checks are pending
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
This commit is contained in:
parent
5b0da88619
commit
173f26f391
1 changed files with 15 additions and 2 deletions
|
@ -22,10 +22,12 @@ if (Deno.args.some((a) => a === "--rc")) {
|
||||||
|
|
||||||
await cliCrate.setVersion(version);
|
await cliCrate.setVersion(version);
|
||||||
await denoRtCrate.setVersion(version);
|
await denoRtCrate.setVersion(version);
|
||||||
await denoLibCrate.setVersion(version);
|
denoLibCrate.folderPath.join("version.txt").writeTextSync(version);
|
||||||
// Force lockfile update
|
// Force lockfile update
|
||||||
await workspace.getCliCrate().cargoUpdate("--workspace");
|
await workspace.getCliCrate().cargoUpdate("--workspace");
|
||||||
|
|
||||||
|
await assertDenoBinaryVersion(version);
|
||||||
|
|
||||||
Deno.exit(0);
|
Deno.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +45,7 @@ if (Deno.args.some((a) => a === "--patch")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
await denoRtCrate.setVersion(cliCrate.version);
|
await denoRtCrate.setVersion(cliCrate.version);
|
||||||
await denoLibCrate.setVersion(cliCrate.version);
|
denoLibCrate.folderPath.join("version.txt").writeTextSync(cliCrate.version);
|
||||||
|
|
||||||
// increment the dependency crate versions
|
// increment the dependency crate versions
|
||||||
for (const crate of workspace.getCliDependencyCrates()) {
|
for (const crate of workspace.getCliDependencyCrates()) {
|
||||||
|
@ -52,6 +54,7 @@ for (const crate of workspace.getCliDependencyCrates()) {
|
||||||
|
|
||||||
// update the lock file
|
// update the lock file
|
||||||
await workspace.getCliCrate().cargoUpdate("--workspace");
|
await workspace.getCliCrate().cargoUpdate("--workspace");
|
||||||
|
await assertDenoBinaryVersion(cliCrate.version);
|
||||||
|
|
||||||
// try to update the Releases.md markdown text
|
// try to update the Releases.md markdown text
|
||||||
try {
|
try {
|
||||||
|
@ -139,3 +142,13 @@ async function bumpCiCacheVersion() {
|
||||||
// run the script
|
// run the script
|
||||||
await $`${generateScript}`;
|
await $`${generateScript}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function assertDenoBinaryVersion(expectedVersion: string) {
|
||||||
|
$.logStep("Verifying Deno binary version.");
|
||||||
|
const text = (await $`cargo run -p deno -- -v`.text()).replace("deno ", "");
|
||||||
|
$.logLight("Version:", text);
|
||||||
|
if (text.trim() !== expectedVersion) {
|
||||||
|
$.logError("Error: Expected", expectedVersion, "but found", text);
|
||||||
|
Deno.exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue