fix: beta/release versioning

This commit is contained in:
Thomas E Lackey 2020-11-16 16:21:40 -06:00
parent 4cc8285405
commit 6f95873c6c
2 changed files with 3 additions and 3 deletions

View File

@ -27,8 +27,8 @@ jobs:
yarn lint
# Uncomment for NPM publishing.
VERSION=`cat lerna.json | grep '"version":' | awk '{ print $2 }' | sed 's/[",]//g'`
yarn lerna version $VERSION --no-git-tag-version -y
VERSION="`cat lerna.json | grep '"version":' | awk '{ print $2 }' | sed 's/[",]//g' | sed 's/-[a-z]*\./-beta./'`"
yarn lerna version ${VERSION} --no-git-tag-version -y
git commit -am "v$VERSION"
git push
git tag -f "v$VERSION"

View File

@ -27,7 +27,7 @@ jobs:
yarn lint
# Uncomment for NPM publishing.
VERSION=`cat lerna.json | grep '"version":' | awk '{ print $2 }' | sed 's/[",]//g'`
VERSION="`cat lerna.json | grep '"version":' | awk '{ print $2 }' | sed 's/[",]//g' | cut -d'-' -f1`"
yarn lerna version $VERSION --no-git-tag-version -y
git commit -am "v$VERSION"
git push