Skip to content

Commit

Permalink
chore: add release-rc script
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 20, 2022
1 parent a2e71ad commit b82c6e3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/release-rc.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b82c6e3

Please sign in to comment.