2022-11-16 14:56:11 +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
|
|
|
|
|
|
|
|
# Release packages
|
|
|
|
for PKG in packages/* ; do
|
2023-08-25 23:44:57 +00:00
|
|
|
if [[ $PKG == "packages/nuxi" ]] ; then
|
2023-08-25 15:39:27 +00:00
|
|
|
continue
|
|
|
|
fi
|
2023-11-20 22:27:22 +00:00
|
|
|
if [[ $PKG == "packages/test-utils" ]] ; then
|
2023-11-06 15:38:45 +00:00
|
|
|
continue
|
|
|
|
fi
|
2022-11-16 14:56:11 +00:00
|
|
|
pushd $PKG
|
|
|
|
TAG="latest"
|
|
|
|
echo "⚡ Publishing $PKG with tag $TAG"
|
2023-01-23 16:53:59 +00:00
|
|
|
cp ../../LICENSE .
|
|
|
|
cp ../../README.md .
|
2022-11-16 14:56:11 +00:00
|
|
|
pnpm publish --access public --no-git-checks --tag $TAG
|
|
|
|
popd > /dev/null
|
|
|
|
done
|
2024-02-15 13:37:04 +00:00
|
|
|
|
|
|
|
# Restore environment to dev mode
|
|
|
|
pnpm dev:prepare
|