Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit fe2344b

Browse files
committed
ci: automate dependencies version bump on release
1 parent 9d96cdd commit fe2344b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
- name: Set the crates version
4747
run: |
4848
sed -i "s/^package.version = .*/package.version = \"${{ steps.next.outputs.version }}\"/" Cargo.toml
49+
sed -i "/path = \".\/crates\//s/version = \".*\"/version = \"=${{ steps.next.outputs.version }}\"/" Cargo.toml
4950
5051
- name: Run `cargo metadata` to make sure the lockfile is up to date
5152
run: cargo metadata --format-version 1
@@ -151,4 +152,4 @@ jobs:
151152
ref: `heads/${branch}`,
152153
sha: commit,
153154
});
154-
console.log("Updated branch ref:", ref.data.url);
155+
console.log("Updated branch ref:", ref.data.url);

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ broken_intra_doc_links = "deny"
2727
[workspace.dependencies]
2828

2929
# Workspace crates
30-
# TODO: we need to automate the publishing of the workspace crates and version bumps
3130
mas-axum-utils = { path = "./crates/axum-utils/", version = "=0.7.0" }
3231
mas-cli = { path = "./crates/cli/", version = "=0.7.0" }
3332
mas-config = { path = "./crates/config/", version = "=0.7.0" }

0 commit comments

Comments
 (0)