Nuxt/scripts/release-rc.sh

22 lines
418 B
Bash
Raw Normal View History

2022-04-20 11:18:15 +00:00
#!/bin/bash
set -e
# Restore all git changes
git restore -s@ -SW -- packages examples
# Build all once to ensure things are nice
yarn build
2022-04-20 11:18:15 +00:00
# Release packages
for PKG in packages/* ; do
pushd $PKG
TAG="latest"
if [ "$PKG" == "packages/nuxt" ]; then
TAG="rc"
fi
echo "⚡ Publishing $PKG with tag $TAG"
npx npm@8.17.0 publish --tag $TAG --access public --tolerate-republish
2022-04-20 11:18:15 +00:00
popd > /dev/null
done