Skip to content

Commit 52c93e9

Browse files
authored
ci: add semver check job and disable release-plz semver (#776)
1 parent b74f5ca commit 52c93e9

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/release-plz.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525
fetch-depth: 0
2626
- name: Install Rust toolchain
2727
uses: dtolnay/rust-toolchain@stable
28-
- name: Run release-plz
29-
uses: release-plz/action@v0.5
30-
with:
31-
command: release
28+
# Using fork until semver_check_features support is released upstream.
29+
# See: https://github.com/release-plz/release-plz/pull/2757
30+
- name: Install release-plz from fork
31+
run: cargo install --git https://github.com/DaleSeo/release-plz --branch feat/semver-check-features release-plz
32+
- name: Run release-plz release
33+
run: release-plz release
3234
env:
3335
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3436
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
@@ -51,10 +53,12 @@ jobs:
5153
fetch-depth: 0
5254
- name: Install Rust toolchain
5355
uses: dtolnay/rust-toolchain@stable
54-
- name: Run release-plz
55-
uses: release-plz/action@v0.5
56-
with:
57-
command: release-pr
56+
# Using fork until semver_check_features support is released upstream.
57+
# See: https://github.com/release-plz/release-plz/pull/2757
58+
- name: Install release-plz from fork
59+
run: cargo install --git https://github.com/DaleSeo/release-plz --branch feat/semver-check-features release-plz
60+
- name: Run release-plz release-pr
61+
run: release-plz release-pr
5862
env:
5963
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6064
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

release-plz.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[[package]]
2+
name = "rmcp"
3+
# Only check default features for semver compatibility.
4+
# The `local` feature intentionally changes the API surface.
5+
semver_check_features = ["default"]

0 commit comments

Comments
 (0)