swc/scripts/cargo/bump.sh
2024-01-02 15:44:51 +09:00

23 lines
513 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
git pull || true
yarn changelog
cargo mono bump -i
# (cd ./bindings && cargo mono bump swc_cli)
# Ensure that Cargo.lock is up-to-date
cargo metadata --format-version 1 > /dev/null
# (cd ./bindings && cargo metadata --format-version 1 > /dev/null)
# Ensure that dependencies are all verified
# ./scripts/crev/verify.sh
git add -A
git commit -m 'chore: Publish crates'
git push --no-verify
# Publish
cargo mono publish --no-verify
(cd ./bindings && cargo mono publish --no-verify)