mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
ci: improve release docs (#18562)
This commit is contained in:
parent
03edd48edd
commit
d939a5e96c
3 changed files with 20 additions and 9 deletions
|
@ -42,7 +42,9 @@ function getNextVersion(originalVersion: semver.SemVer) {
|
||||||
function buildDenoReleaseInstructionsDoc() {
|
function buildDenoReleaseInstructionsDoc() {
|
||||||
const templateText = currentDirPath
|
const templateText = currentDirPath
|
||||||
.join("release_doc_template.md")
|
.join("release_doc_template.md")
|
||||||
.readTextSync();
|
.readTextSync()
|
||||||
|
.replaceAll("$BRANCH_NAME", `v${nextVersion.major}.${nextVersion.minor}`)
|
||||||
|
.replaceAll("$VERSION", nextVersion.toString());
|
||||||
return `# Deno CLI ${nextVersion.toString()} Release Checklist\n\n${templateText}`;
|
return `# Deno CLI ${nextVersion.toString()} Release Checklist\n\n${templateText}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { DenoWorkspace } from "./deno_workspace.ts";
|
||||||
const workspace = await DenoWorkspace.load();
|
const workspace = await DenoWorkspace.load();
|
||||||
|
|
||||||
// create a release notes file for the GH release draft
|
// create a release notes file for the GH release draft
|
||||||
await Deno.writeTextFile(
|
$.path(DenoWorkspace.rootDirPath)
|
||||||
$.path.join(DenoWorkspace.rootDirPath, "./target/release/release-notes.md"),
|
.join("./target/release/release-notes.md")
|
||||||
workspace.getReleasesMdFile().getLatestReleaseText().fullText,
|
.writeTextSync(workspace.getReleasesMdFile().getLatestReleaseText().fullText);
|
||||||
);
|
|
||||||
|
|
|
@ -129,22 +129,32 @@ verify on GitHub that everything looks correct.
|
||||||
GitHub draft release.
|
GitHub draft release.
|
||||||
|
|
||||||
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). Update the draft with the
|
(https://github.com/denoland/deno/releases).
|
||||||
contents of `Releases.md` that you previously added.
|
|
||||||
|
|
||||||
- [ ] Upload Apple M1 build (`deno-aarch64-apple-darwin.zip`) to the release
|
- [ ] Upload Apple M1 build (`deno-aarch64-apple-darwin.zip`) to the release
|
||||||
draft and to https://console.cloud.google.com/storage/browser/dl.deno.land
|
draft and to https://console.cloud.google.com/storage/browser/dl.deno.land
|
||||||
|
|
||||||
|
Send the following commands:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
git fetch upstream $BRANCH_NAME && git checkout -B $BRANCH_NAME upstream/$BRANCH_NAME
|
||||||
cargo build --release
|
cargo build --release
|
||||||
cd target/release
|
cd target/release
|
||||||
|
set DENO_VERSION (./deno -V)
|
||||||
|
echo "Built $DENO_VERSION"
|
||||||
|
test $DENO_VERSION = "deno $VERSION"; or begin; echo "Version didn't match!!!"; exit 1; end
|
||||||
zip -r deno-aarch64-apple-darwin.zip deno
|
zip -r deno-aarch64-apple-darwin.zip deno
|
||||||
```
|
```
|
||||||
|
|
||||||
|
And ask them to upload to these links:
|
||||||
|
|
||||||
|
- https://console.cloud.google.com/storage/browser/dl.deno.land/release/v$VERSION
|
||||||
|
- https://github.com/denoland/deno/releases/
|
||||||
|
|
||||||
- ⛔ Verify that:
|
- ⛔ Verify that:
|
||||||
- [ ] There are 8 assets on the release draft.
|
- [ ] There are 8 assets on the release draft.
|
||||||
- [ ] There are 4 zip files for this version on
|
- [ ] There are 4 zip files for this version on
|
||||||
[dl.deno.land](https://console.cloud.google.com/storage/browser/dl.deno.land/release).
|
[dl.deno.land](https://console.cloud.google.com/storage/browser/dl.deno.land/release/v$VERSION).
|
||||||
- [ ] The aarch64 Mac build was built from the correct branch AFTER the
|
- [ ] The aarch64 Mac build was built from the correct branch AFTER the
|
||||||
version bump and has the same version as the release when doing
|
version bump and has the same version as the release when doing
|
||||||
`deno -V` (ask someone with an M1 Mac to verify this if you don't have
|
`deno -V` (ask someone with an M1 Mac to verify this if you don't have
|
||||||
|
@ -201,5 +211,5 @@ script generates the symbols based on the latest tags.
|
||||||
|
|
||||||
## All done!
|
## All done!
|
||||||
|
|
||||||
- [ ] Write a message in company's #general channel:
|
- [ ] Write a message in company's #cli channel:
|
||||||
`:unlock: deno and deno_std are now unlocked`.
|
`:unlock: deno and deno_std are now unlocked`.
|
||||||
|
|
Loading…
Reference in a new issue