Nuxt/scripts/release.sh

35 lines
770 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
# use absolute urls for better rendering on npm
2024-06-16 22:14:09 +00:00
sed -i.bak 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md
# Release packages
for PKG in packages/* ; do
if [[ $PKG == "packages/nuxi" ]] ; then
2023-08-25 15:39:27 +00:00
continue
fi
if [[ $PKG == "packages/test-utils" ]] ; then
continue
fi
2024-06-11 08:54:34 +00:00
if [[ $PKG == "packages/ui-templates" ]] ; then
2024-05-01 10:08:20 +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
2024-06-16 22:14:09 +00:00
mv README.md.bak README.md