mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 17:54:15 +03:00
22 lines
662 B
Bash
Executable File
22 lines
662 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 || true
|
|
(cd ./packages/minifier && npm version "$version" --no-git-tag-version --allow-same-version || true)
|
|
(cd ./bindings && cargo set-version $version -p binding_core_wasm -p binding_minifier_wasm)
|
|
(cd ./bindings && cargo set-version --bump patch -p swc_cli)
|