Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -620,14 +620,17 @@ workflows:
only:
- dev
- prepare_release:
name: "Prepare major release"
release_type: "major"
requires:
- prepare_major_release_approval
- prepare_release:
name: "Prepare minor release"
release_type: "minor"
requires:
- prepare_minor_release_approval
- prepare_release:
name: "Prepare patch release"
release_type: "patch"
requires:
- prepare_patch_release_approval
Expand Down
8 changes: 8 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ Rust MSRV incremented to 1.65.

By [@bryncooke](https://github.com/bryncooke) in https://github.com/apollographql/router/pull/2221 and https://github.com/apollographql/router/pull/2240

### Improve automated release ([Pull #2220](https://github.com/apollographql/router/pull/2256))

Improved the automated release to:
* Update the scaffold files
* Improve the names of prepare release steps in circle.

By [@bryncooke](https://github.com/bryncooke) in https://github.com/apollographql/router/pull/2256

### Use Elastic-2.0 license spdx ([PR #2055](https://github.com/apollographql/router/issues/2055))

Now that the Elastic-2.0 spdx is a valid identifier in the rust ecosystem, we can update the router references.
Expand Down
11 changes: 11 additions & 0 deletions xtask/src/commands/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,17 @@ impl Prepare {
for package in packages {
cargo!(["set-version", &version, "--package", package])
}
replace_in_file!(
"./apollo-router-scaffold/templates/base/Cargo.toml",
"^apollo-router\\s*=\\s*\"\\d+.\\d+.\\d+\"",
format!("apollo-router = \"{}\"", version)
);
replace_in_file!(
"./apollo-router-scaffold/templates/base/xtask/Cargo.toml",
"^apollo-router-scaffold = \\{ git=\"https://github.com/apollographql/router.git\", tag\\s*=\\s*\"v\\d+.\\d+.\\d+\"\\s*\\}",
format!("apollo-router-scaffold = {{ git=\"https://github.com/apollographql/router.git\", tag = \"v{}\" }}", version)
);

Ok(version)
}

Expand Down