Skip to content

Commit

Permalink
ci: release-plz
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Mar 16, 2024
1 parent 37e2379 commit b7aa490
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [published]

concurrency:
group: release-${{ github.ref_name }}
group: publish-cli-${{ github.ref_name }}

env:
CARGO_TERM_COLOR: always
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release-plz
name: release-plz

permissions:
pull-requests: write
Expand All @@ -9,18 +9,19 @@ on:
branches:
- main

concurrency:
group: release-plz-${{ github.ref }}

jobs:
release-plz:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
- uses: dtolnay/rust-toolchain@stable
- uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3 changes: 3 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ run = [

[tasks.release]
run = "cargo release --workspace"

[tools]
"npm:prettier" = "latest"
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ authors = ["Jeff Dickey @jdx"]
license = "MIT"

[workspace.dependencies]
usage-cli = { path = "cli" }
usage-lib = { path = "lib" }
usage-cli = { path = "./cli" }
usage-lib = { path = "./lib" }

[workspace.metadata.release]
allow-branch = ["main"]
15 changes: 10 additions & 5 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
[workspace]
changelog_update = false
dependencies_update = true
git_release_enable = false
git_tag_enable = false
pr_labels = ["release"]
semver_check = false # TODO: disable after 1.0.0

[[package]]
name = "usage-cli"
changelog_update = true
changelog_path = "./CHANGELOG.md"
changelog_include = ["usage-lib"]

[[package]]
name = "usage-lib"
changelog_path = "./CHANGELOG.md"
changelog_update = true
git_release_enable = true
git_tag_enable = true
git_tag_name = "v${version}"

0 comments on commit b7aa490

Please sign in to comment.