Skip to content

Commit 033008e

Browse files
committed
Fix npm check for beta releases
If a beta release is done, check for beta tag instead of latest.
1 parent ff830ad commit 033008e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

client/release/scripts/release.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@ cleanup() {
2626
wait_for_npm_publish(){
2727
package_name="${1}"
2828
updated_npm_version="${2}"
29+
# Map release channel to npm dist-tag
30+
if [ "$RELEASE_CHANNEL" = "beta" ]; then
31+
tag="beta"
32+
else
33+
tag="latest"
34+
fi
2935

3036
while true; do
31-
npm_version=$(npm view "$package_name" version)
37+
npm_version=$(npm view "$package_name@$tag" version)
3238
# if package matches npm registry than break out of loop and update package.json
3339
if [ "$npm_version" == "$updated_npm_version" ]; then
3440
echo "The package version $npm_version is up to date!"

0 commit comments

Comments
 (0)