From b82c6e3e962ca52ae6556251655642e0e344b456 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 20 Apr 2022 13:18:15 +0200 Subject: [PATCH] chore: add release-rc script --- scripts/release-rc.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/release-rc.sh diff --git a/scripts/release-rc.sh b/scripts/release-rc.sh new file mode 100755 index 0000000000..b776cd34f9 --- /dev/null +++ b/scripts/release-rc.sh @@ -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