mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 17:54:15 +03:00
chore: Add a script to manage crates
This commit is contained in:
parent
d8c8641e59
commit
b9baa503e3
12
scripts/cargo/bump-with-cmd.sh
Executable file
12
scripts/cargo/bump-with-cmd.sh
Executable file
@ -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
|
@ -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 $@"
|
Loading…
Reference in New Issue
Block a user