refactor(tools): reduce release steps
This commit is contained in:
parent
b3de722778
commit
e50343b06b
1 changed files with 5 additions and 1 deletions
|
@ -104,6 +104,10 @@ check() {
|
||||||
|
|
||||||
_bump_file() {
|
_bump_file() {
|
||||||
for i in "${!FILES[@]}"; do
|
for i in "${!FILES[@]}"; do
|
||||||
|
if [[ ${FILES[$i]} == $NODE_CONFIG ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
sed -i "s/v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/v$1/" "${FILES[$i]}"
|
sed -i "s/v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/v$1/" "${FILES[$i]}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -183,7 +187,7 @@ main() {
|
||||||
fi
|
fi
|
||||||
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"
|
echo -e "Bump version number to $_version\n"
|
||||||
bump "$_version"
|
bump "$_version"
|
||||||
|
|
Loading…
Reference in a new issue