Packages: stable release tags update (#20417)
* Update next npm tag when publishing stable release
* shellcheck fix
(cherry picked from commit de9ea829a4)
This commit is contained in:
committed by
Marcus Efraimsson
parent
bcd2dcb0ee
commit
1b21695b7e
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PACKAGES=("@grafana/ui" "@grafana/data" "@grafana/toolkit" "@grafana/runtime")
|
||||
GRAFANA_TAG=${1:-}
|
||||
RELEASE_CHANNEL="latest"
|
||||
|
||||
@@ -41,3 +42,11 @@ yarn packages:build
|
||||
echo $'\nPublishing packages'
|
||||
yarn packages:${SCRIPT}
|
||||
|
||||
# When releasing stable(latest) version of packages we are updating previously published next tag(beta) to be the same version as latest
|
||||
if [ $RELEASE_CHANNEL == "latest" ]; then
|
||||
for i in "${PACKAGES[@]}"
|
||||
do
|
||||
:
|
||||
npm dist-tag add "$i"@"$PACKAGE_VERSION" next
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user