Nuxt/scripts/release-rc.sh

30 lines
571 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
pnpm build
2022-04-20 11:18:15 +00:00
# Release packages
for PKG in packages/* ; do
if [[ $PKG == "packages/nuxi" ]] ; then
2023-08-25 15:39:27 +00:00
continue
fi
if [[ $p == "packages/test-utils" ]] ; then
continue
fi
2022-04-20 11:18:15 +00:00
pushd $PKG
TAG="latest"
if [ "$PKG" == "packages/nuxt" ]; then
TAG="rc"
fi
echo "⚡ Publishing $PKG with tag $TAG"
cp ../../LICENSE .
cp ../../README.md .
2022-10-17 13:35:36 +00:00
pnpm publish --access public --no-git-checks --tag $TAG
2022-04-20 11:18:15 +00:00
popd > /dev/null
done