swc/scripts/cargo/bump.sh

20 lines
456 B
Bash
Raw Normal View History

2021-10-31 12:17:31 +03:00
#!/usr/bin/env bash
set -eu
2021-12-19 08:11:08 +03:00
git pull || true
yarn changelog
cargo mono bump -i
# Ensure that Cargo.lock is up-to-date
2022-01-07 09:18:26 +03:00
cargo metadata --offline --format-version 1 > /dev/null
# Ensure that dependencies are all verified
./scripts/crev/verify.sh
export GIT_COMMITTER_NAME="SWC Bot"
export GIT_COMMITTER_EMAIL="bot@swc.rs"
2021-12-19 08:11:08 +03:00
git add -A
git commit --author="SWC Bot <bot@swc.rs>" -m 'chore: Publish crates'
2022-01-27 19:13:16 +03:00
git push --no-verify
2021-12-19 08:11:08 +03:00
cargo mono publish --no-verify