chore: trim distTag

Update scripts/remove-dist-tag.sh

Co-Authored-By: Ben Irvin <ben@innerdvations.com>
This commit is contained in:
Josh 2023-03-31 08:35:13 +01:00
parent 88c2b66e8d
commit 3b0c2be74f

View File

@ -7,6 +7,9 @@ set -e
distTag=$DIST_TAG
# trim distTag for whitespace at the start and end
distTag=$(echo "$distTag" | xargs)
if [[ -z "$distTag" ]]; then
echo "Please enter the dist-tag you want to remove"
read -r distTag
@ -19,4 +22,4 @@ if [[ "$distTag" == "latest" || "$distTag" == "beta" || "$distTag" == "alpha" ||
fi
# Run npm dist-tag rm $distTag on each package
./node_modules/.bin/lerna exec --no-private --stream -- "npm dist-tag rm \$LERNA_PACKAGE_NAME $distTag"
./node_modules/.bin/lerna exec --no-private --stream -- "npm dist-tag rm \$LERNA_PACKAGE_NAME $distTag"