2022-04-20 11:18:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Restore all git changes
|
|
|
|
git restore -s@ -SW -- packages examples
|
|
|
|
|
2022-04-20 12:48:58 +00:00
|
|
|
# Build all once to ensure things are nice
|
2022-10-17 10:10:05 +00:00
|
|
|
pnpm build
|
2022-04-20 12:48:58 +00:00
|
|
|
|
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"
|
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
|