We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff830ad commit 033008eCopy full SHA for 033008e
client/release/scripts/release.sh
@@ -26,9 +26,15 @@ cleanup() {
26
wait_for_npm_publish(){
27
package_name="${1}"
28
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
35
36
while true; do
- npm_version=$(npm view "$package_name" version)
37
+ npm_version=$(npm view "$package_name@$tag" version)
38
# if package matches npm registry than break out of loop and update package.json
39
if [ "$npm_version" == "$updated_npm_version" ]; then
40
echo "The package version $npm_version is up to date!"
0 commit comments