Skip to content

Commit

Permalink
chore: Add a script to manage crates
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Dec 2, 2021
1 parent d8c8641 commit b9baa50
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
12 changes: 12 additions & 0 deletions scripts/cargo/bump-with-cmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -eu

git pull || true

sh -c "$@"
# Ensure that Cargo.lock is up-to-date
cargo metadata --format-version 1 > /dev/null
git add -A
git commit -m 'chore: Publish crates'
git push
cargo mono publish --no-verify
10 changes: 1 addition & 9 deletions scripts/cargo/bump.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
#!/usr/bin/env bash
set -eu

git pull || true

cargo mono bump $@
# Ensure that Cargo.lock is up-to-date
cargo metadata --format-version 1 > /dev/null
git add -A
git commit -m 'chore: Publish crates'
git push
cargo mono publish --no-verify
./scripts/cargo/bump-with-cmd.sh "cargo mono bump $@"

0 comments on commit b9baa50

Please sign in to comment.