summaryrefslogtreecommitdiff
path: root/tools/release
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-03-27 17:51:52 +0000
committerGitHub <noreply@github.com>2024-03-27 18:51:52 +0100
commit0e4d1cb5f9a3645f6da480b2b8540568fa69d675 (patch)
tree8d2a029a40d86f93110a825ab5d05c9bd28135da /tools/release
parent624e3a04e7eb92d5ce3536cec653d7aae92df5b5 (diff)
feat(init): use jsr specifier for @std/assert (#23073)
This commit changes "deno init" subcommand to use "jsr:" specifier for standard library "assert" module. It is unversioned, but we will change it to `@^1` once `@std/assert` release version 1.0. This allows us to start decoupling `deno` and `deno_std` release. The release scripts have been updated to take that into account.
Diffstat (limited to 'tools/release')
-rwxr-xr-xtools/release/01_bump_crate_versions.ts19
-rwxr-xr-xtools/release/02_create_pr.ts1
-rw-r--r--tools/release/release_doc_template.md3
3 files changed, 1 insertions, 22 deletions
diff --git a/tools/release/01_bump_crate_versions.ts b/tools/release/01_bump_crate_versions.ts
index 4f974e2d5..bef8011ba 100755
--- a/tools/release/01_bump_crate_versions.ts
+++ b/tools/release/01_bump_crate_versions.ts
@@ -26,10 +26,6 @@ for (const crate of workspace.getCliDependencyCrates()) {
await crate.increment("minor");
}
-// update the std version used in the code
-$.logStep("Updating std version...");
-await updateStdVersion();
-
// update the lock file
await workspace.getCliCrate().cargoUpdate("--workspace");
@@ -98,21 +94,6 @@ async function getGitLog() {
}
}
-async function updateStdVersion() {
- const compatFilePath = cliCrate.folderPath.join("deno_std.rs");
- const text = await compatFilePath.readText();
- const versionRe = /std@([0-9]+\.[0-9]+\.[0-9]+)/;
- const stdVersionText = versionRe.exec(text)?.[1];
- if (stdVersionText == null) {
- throw new Error(`Could not find the deno_std version in ${compatFilePath}`);
- }
- const stdVersion = semver.parse(stdVersionText)!;
- const newStdVersion = stdVersion.increment("minor");
- await compatFilePath.writeText(
- text.replace(versionRe, `std@${newStdVersion}`),
- );
-}
-
async function bumpCiCacheVersion() {
const generateScript = workspace.repo.folderPath.join(
".github/workflows/ci.generate.ts",
diff --git a/tools/release/02_create_pr.ts b/tools/release/02_create_pr.ts
index af3f81f02..5ef64cd14 100755
--- a/tools/release/02_create_pr.ts
+++ b/tools/release/02_create_pr.ts
@@ -36,7 +36,6 @@ function getPrBody() {
`Please ensure:\n` +
`- [ ] Target branch is correct (\`vX.XX\` if a patch release, \`main\` if minor)\n` +
`- [ ] Crate versions are bumped correctly\n` +
- `- [ ] deno_std version is incremented in the code (see \`cli/deno_std.rs\`)\n` +
`- [ ] Releases.md is updated correctly (think relevancy and remove reverts)\n\n` +
`To make edits to this PR:\n` +
"```shell\n" +
diff --git a/tools/release/release_doc_template.md b/tools/release/release_doc_template.md
index d174733a5..83b5d6766 100644
--- a/tools/release/release_doc_template.md
+++ b/tools/release/release_doc_template.md
@@ -101,8 +101,7 @@ verify on GitHub that everything looks correct.
1. Checkout the branch the release is being made on.
2. Manually run `./tools/release/01_bump_crate_versions.ts`
1. Ensure the crate versions were bumped correctly
- 2. Ensure deno_std version was updated correctly in `cli/deno_std.rs`
- 3. Ensure `Releases.md` was updated correctly
+ 2. Ensure `Releases.md` was updated correctly
3. Open a PR with the changes and continue with the steps below.
</details>