mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore: add release-rc script
This commit is contained in:
parent
a2e71ad14a
commit
b82c6e3e96
21
scripts/release-rc.sh
Executable file
21
scripts/release-rc.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/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"
|
||||
|
||||
# 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"
|
||||
echo yarn npm publish --tag $TAG --access public --tolerate-republish
|
||||
popd > /dev/null
|
||||
done
|
Loading…
Reference in New Issue
Block a user