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
|
|
|
|
2024-06-16 07:51:12 +00:00
|
|
|
# use absolute urls for better rendering on npm
|
|
|
|
sed -i '' 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md
|
|
|
|
|
2022-04-20 11:18:15 +00:00
|
|
|
# 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
|
2024-05-01 10:08:20 +00:00
|
|
|
if [[ $p == "packages/ui-templates" ]] ; 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"
|
2023-01-23 16:53:59 +00:00
|
|
|
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
|