mirror of https://github.com/prometheus/prometheus
Merge pull request #11770 from prometheus/nexucis/fix-bump-ui-version
fix ui bump version on macpull/12015/head
commit
46f9c34d90
|
@ -75,12 +75,17 @@ function bumpVersion() {
|
||||||
if [[ "${version}" == v* ]]; then
|
if [[ "${version}" == v* ]]; then
|
||||||
version="${version:1}"
|
version="${version:1}"
|
||||||
fi
|
fi
|
||||||
# increase the version on all packages
|
|
||||||
npm version "${version}" --workspaces
|
|
||||||
# upgrade the @prometheus-io/* dependencies on all packages
|
# upgrade the @prometheus-io/* dependencies on all packages
|
||||||
for workspace in ${workspaces}; do
|
for workspace in ${workspaces}; do
|
||||||
sed -E -i "s|(\"@prometheus-io/.+\": )\".+\"|\1\"\^${version}\"|" "${workspace}"/package.json
|
# sed -i syntax is different on mac and linux
|
||||||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
sed -E -i "" "s|(\"@prometheus-io/.+\": )\".+\"|\1\"${version}\"|" "${workspace}"/package.json
|
||||||
|
else
|
||||||
|
sed -E -i "s|(\"@prometheus-io/.+\": )\".+\"|\1\"${version}\"|" "${workspace}"/package.json
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
# increase the version on all packages
|
||||||
|
npm version "${version}" --workspaces
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$1" == "--copy" ]]; then
|
if [[ "$1" == "--copy" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue