0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-01 12:16:11 -05:00

chore(scripts): improvements to the release scripts based on the 1.14 release (#12079)

This commit is contained in:
David Sherret 2021-09-15 09:16:06 -04:00 committed by GitHub
parent badc87e657
commit 4283e2907e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 15 deletions

View file

@ -52,19 +52,19 @@ cut.**
13. Wait for CI pipeline on the created tag branch to pass. 13. Wait for CI pipeline on the created tag branch to pass.
The CI pipeline will create a release draft on GitHub The CI pipeline will create a release draft on GitHub
(https://github.com/denoland/deno/releases). (https://github.com/denoland/deno/releases).
11. Upload Apple M1 build to the release draft & to dl.deno.land. 14. Upload Apple M1 build to the release draft & to dl.deno.land.
12. Publish the release on Github 15. Publish the release on Github
13. Update the Deno version on the website by updating 16. Update the Deno version on the website by updating
https://github.com/denoland/deno_website2/blob/main/versions.json. https://github.com/denoland/deno_website2/blob/main/versions.json.
14. Push a new tag to [`manual`](https://github.com/denoland/manual). The tag 17. Push a new tag to [`manual`](https://github.com/denoland/manual). The tag
must match the tag from point 9; you don't need to create dedicated commit must match the CLI tag; you don't need to create dedicated commit for that
for that purpose, it's enough to tag the latest commit in that repo. purpose, it's enough to tag the latest commit in that repo.
## Updating `deno_docker` ## Updating `deno_docker`

View file

@ -4,8 +4,14 @@ import { DenoWorkspace, getCratesPublishOrder } from "./helpers/mod.ts";
const workspace = await DenoWorkspace.load(); const workspace = await DenoWorkspace.load();
const dependencyCrates = workspace.getDependencyCrates(); const dependencyCrates = getCratesPublishOrder(workspace.getDependencyCrates());
for (const crate of getCratesPublishOrder(dependencyCrates)) { try {
await crate.publish(); for (const [i, crate] of dependencyCrates.entries()) {
await crate.publish();
console.log(`Published ${i + 1} of ${dependencyCrates.length} crates.`);
}
} finally {
// system beep to notify error or completion
console.log("\x07");
} }

View file

@ -141,15 +141,15 @@ export class DenoWorkspaceCrate {
console.log(`Publishing ${this.name} ${this.version}...`); console.log(`Publishing ${this.name} ${this.version}...`);
// Sometimes a publish may fail due to local caching issues. // Sometimes a publish may fail due to the crates.io index
// Usually it will fix itself after retrying so try a few // not being updated yet. Usually it will be resolved after
// times before failing hard. // retrying, so try a few times before failing hard.
return await withRetries({ return await withRetries({
action: async () => { action: async () => {
await cargo.publishCrate(this.directoryPath); await cargo.publishCrate(this.directoryPath);
return true; return true;
}, },
retryCount: 3, retryCount: 5,
retryDelaySeconds: 10, retryDelaySeconds: 10,
}); });
} }