mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +03:00
22 lines
646 B
Bash
Executable File
22 lines
646 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eux
|
|
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
version="$1"
|
|
|
|
# Reset other changes
|
|
git commit $SCRIPT_DIR/publish.sh -m 'Update publish script' || true
|
|
git reset --hard
|
|
|
|
# Update swc_core
|
|
(cd ./bindings && cargo upgrade -p swc_core --recursive false)
|
|
|
|
|
|
# Update version
|
|
npm version "$version" --no-git-tag-version --allow-same-version
|
|
(cd ./packages/minifier && npm version "$version" --no-git-tag-version --allow-same-version)
|
|
(cd ./bindings && cargo set-version $version -p binding_core_wasm -p binding_minifier_wasm)
|
|
(cd ./bindings && cargo set-version --bump patch -p swc_cli)
|