2019-04-25 08:43:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ ! "$1" ]; then
|
|
|
|
echo "Usage $0 [version]"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
yarn build
|
|
|
|
|
2023-03-09 12:41:29 +00:00
|
|
|
for dir in packages/* distributions/* ; do
|
|
|
|
# echo "$dir"
|
|
|
|
pushd $dir > /dev/null
|
|
|
|
# if package is nuxt then publish with tag 2x
|
|
|
|
if [ "$dir" = "distributions/nuxt" ]; then
|
2023-03-17 15:39:50 +00:00
|
|
|
npm publish --tag 2x -q
|
2023-03-09 12:41:29 +00:00
|
|
|
else
|
2023-03-17 15:39:50 +00:00
|
|
|
npm publish -q
|
2023-03-09 12:41:29 +00:00
|
|
|
fi
|
|
|
|
popd > /dev/null
|
|
|
|
done
|
2019-04-25 08:43:50 +00:00
|
|
|
|
|
|
|
git tag -a v$1 -m v$1
|
|
|
|
git push --tags
|