ci: add semver check job and disable release-plz semver (#776)
This commit is contained in:
parent
b74f5ca35b
commit
52c93e9508
2 changed files with 17 additions and 8 deletions
20
.github/workflows/release-plz.yml
vendored
20
.github/workflows/release-plz.yml
vendored
|
|
@ -25,10 +25,12 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Run release-plz
|
||||
uses: release-plz/action@v0.5
|
||||
with:
|
||||
command: release
|
||||
# Using fork until semver_check_features support is released upstream.
|
||||
# See: https://github.com/release-plz/release-plz/pull/2757
|
||||
- name: Install release-plz from fork
|
||||
run: cargo install --git https://github.com/DaleSeo/release-plz --branch feat/semver-check-features release-plz
|
||||
- name: Run release-plz release
|
||||
run: release-plz release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
|
|
@ -51,10 +53,12 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Run release-plz
|
||||
uses: release-plz/action@v0.5
|
||||
with:
|
||||
command: release-pr
|
||||
# Using fork until semver_check_features support is released upstream.
|
||||
# See: https://github.com/release-plz/release-plz/pull/2757
|
||||
- name: Install release-plz from fork
|
||||
run: cargo install --git https://github.com/DaleSeo/release-plz --branch feat/semver-check-features release-plz
|
||||
- name: Run release-plz release-pr
|
||||
run: release-plz release-pr
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
5
release-plz.toml
Normal file
5
release-plz.toml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[[package]]
|
||||
name = "rmcp"
|
||||
# Only check default features for semver compatibility.
|
||||
# The `local` feature intentionally changes the API surface.
|
||||
semver_check_features = ["default"]
|
||||
Loading…
Reference in a new issue