File size: 620 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
#!/bin/bash
# Force start from root folder
cd "$(dirname "$0")/.."
set -e
version=$VERSION
distTag=$DIST_TAG
withTag=$WITH_TAG
if [[ -z "$version" ]]; then
echo "Please enter the version you want to publish"
read -r version
fi
if [[ -z "$distTag" ]]; then
echo "Please enter the dist-tag you want to publish with"
read -r distTag
fi
# publish packages
./node_modules/.bin/changeset version --snapshot "$version"
if [[ "$withTag" == "true" ]]; then
./node_modules/.bin/changeset publish --snapshot --tag "$distTag"
else
./node_modules/.bin/changeset publish --no-git-tag --snapshot --tag "$distTag"
fi
|