Nuxt/scripts/release.sh

24 lines
448 B
Bash
Raw Normal View History

#!/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
2023-08-25 15:39:27 +00:00
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