forked from cerc-io/laconic-console
fix: beta/release versioning
This commit is contained in:
parent
4cc8285405
commit
6f95873c6c
4
.github/workflows/beta-publish.yml
vendored
4
.github/workflows/beta-publish.yml
vendored
@ -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"
|
||||
|
2
.github/workflows/release-publish.yml
vendored
2
.github/workflows/release-publish.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user