mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
98586bcf25
spoiler: releasing `3.0.0-rc.0` to ensure everything goes well :p
25 lines
502 B
Bash
Executable File
25 lines
502 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Restore all git changes
|
|
git restore -s@ -SW -- packages examples
|
|
|
|
# Bump versions
|
|
yarn lerna version --preid rc --no-changelog --no-push -m "chore: release rc"
|
|
|
|
# Build all once to ensure things are nice
|
|
yarn build
|
|
|
|
# Release packages
|
|
for PKG in packages/* ; do
|
|
pushd $PKG
|
|
TAG="latest"
|
|
if [ "$PKG" == "packages/nuxt" ]; then
|
|
TAG="rc"
|
|
fi
|
|
echo "⚡ Publishing $PKG with tag $TAG"
|
|
npm publish --tag $TAG --access public --tolerate-republish
|
|
popd > /dev/null
|
|
done
|