Nuxt/scripts/release.sh
2024-05-01 11:08:20 +01:00

30 lines
580 B
Bash
Executable File

#!/bin/bash
set -e
# Restore all git changes
git restore -s@ -SW -- packages examples
# Build all once to ensure things are nice
pnpm build
# Release packages
for PKG in packages/* ; do
if [[ $PKG == "packages/nuxi" ]] ; then
continue
fi
if [[ $PKG == "packages/test-utils" ]] ; then
continue
fi
if [[ $p == "packages/ui-templates" ]] ; then
continue
fi
pushd $PKG
TAG="latest"
echo "⚡ Publishing $PKG with tag $TAG"
cp ../../LICENSE .
cp ../../README.md .
pnpm publish --access public --no-git-checks --tag $TAG
popd > /dev/null
done