Skip to content

Commit

Permalink
ci: add release-plz config file (#57)
Browse files Browse the repository at this point in the history
Attempt to address
#55 (comment)

Maybe what happened is:
1. PR merges, `release_always` is by default true so the `release-plz`
CLI runs
1. `release-pr` command (`update` command AND opening of PR): it tries
to update but failed (e.g. no pkg on crates.io and no CHANGELOG file
yet, see
https://github.com/privacy-scaling-explorations/zk-kit.rust/actions/runs/11124754559/job/30910962049#step:4:230).
A PR is opened nonetheless.
  2. `release` command: runs nonetheless, new crate is published
2. we merge the release PR created by the previous release GH workflow
(previous step)
3. In the next release workflow run, the `release-pr` step that includes
the `update` command detects a new commit (the PR merge at step 1) and
bumps the version again, creating a new PR too.

A fix could be to set
[`release_always`](https://release-plz.ieni.dev/docs/config#the-release_always-field)
to `false`.
  • Loading branch information
sripwoud authored Oct 1, 2024
1 parent a03c09f commit 21de535
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[workspace]
release_always = false

0 comments on commit 21de535

Please sign in to comment.