chore: Improve publish script

This commit is contained in:
강동윤 (Donny) 2024-04-23 12:34:49 +09:00
parent fedf06f820
commit b1c22d53b6

View File

@ -4,12 +4,12 @@ set -eu
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
version="$1"
swc_core_version="$(cargo tree -i -p swc_core --depth 0 | awk '{print $2}')"
git pull || true
yarn
version="$1"
swc_core_version="$(cargo tree -i -p swc_core --depth 0 | awk '{print $2}')"
echo "Publishing $version with swc_core $swc_core_version"
# Update swc_core