mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
27 lines
507 B
Bash
Executable File
27 lines
507 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
|
|
pushd $PKG
|
|
TAG="latest"
|
|
if [ "$PKG" == "packages/nuxt" ]; then
|
|
TAG="rc"
|
|
fi
|
|
echo "⚡ Publishing $PKG with tag $TAG"
|
|
cp ../../LICENSE .
|
|
cp ../../README.md .
|
|
pnpm publish --access public --no-git-checks --tag $TAG
|
|
popd > /dev/null
|
|
done
|