swc/scripts/cargo/cli.sh

18 lines
400 B
Bash
Raw Normal View History

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