refactor(tools): reduce release steps

This commit is contained in:
Cotes Chung 2022-11-22 18:24:26 +08:00
parent b3de722778
commit e50343b06b
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -104,6 +104,10 @@ check() {
_bump_file() {
for i in "${!FILES[@]}"; do
if [[ ${FILES[$i]} == $NODE_CONFIG ]]; then
continue
fi
sed -i "s/v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/v$1/" "${FILES[$i]}"
done
@ -183,7 +187,7 @@ main() {
fi
fi
_version="$(grep '"version":' package.json | sed 's/.*: "//;s/".*//')"
_version="$(grep '"version":' "$NODE_CONFIG" | sed 's/.*: "//;s/".*//')"
echo -e "Bump version number to $_version\n"
bump "$_version"