Skip to content

Commit

Permalink
[release] verify crates before releasing them
Browse files Browse the repository at this point in the history
Since the published Cargo.lock will contain newer versions of
dependencies anyway, ensure that crates build before releasing them.
  • Loading branch information
sunshowers committed Nov 23, 2022
1 parent bcb24c3 commit 25ecaf1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/cargo-release-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ set -xe -o pipefail
git checkout -B to-release

# --execute: actually does the release
# --no-verify: doesn't build before releasing (this is because the cargo publish process might pull
# in new versions of dependencies, which might have regressions)
# --no-confirm: don't ask for confirmation, since this is a non-interactive script
cargo release publish --publish --execute --no-verify --no-confirm --workspace "$@"
cargo release publish --publish --execute --no-confirm --workspace "$@"

git checkout -
git branch -D to-release

0 comments on commit 25ecaf1

Please sign in to comment.