mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
25 lines
392 B
Bash
Executable File
25 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ ! "$1" ]; then
|
|
echo "Usage $0 [version]"
|
|
exit 1
|
|
fi
|
|
|
|
yarn build
|
|
|
|
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
|
|
npm publish --tag 2x -q
|
|
else
|
|
npm publish -q
|
|
fi
|
|
popd > /dev/null
|
|
done
|
|
|
|
git tag -a v$1 -m v$1
|
|
git push --tags
|