Extract getcurrent version
This commit is contained in:
parent
d77d9dbda9
commit
5a8d575602
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
version=$(cat lerna.json \
|
||||||
|
| grep version \
|
||||||
|
| head -1 \
|
||||||
|
| awk -F: '{gsub(/"/,"",$2);gsub(/[[:space:]]*/,"",$2); print $2}' \
|
||||||
|
| sed 's/[",]//g')
|
||||||
|
echo $version
|
|
@ -1,9 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
version=$(cat lerna.json \
|
version=$(./scripts/getCurrentVersion.sh)
|
||||||
| grep version \
|
|
||||||
| head -1 \
|
|
||||||
| awk -F: '{gsub(/"/,"",$2);gsub(/[[:space:]]*/,"",$2); print $2}' \
|
|
||||||
| sed 's/[",]//g')
|
|
||||||
echo "Setting version $version"
|
echo "Setting version $version"
|
||||||
yarn lerna exec "yarn version --no-git-tag-version --new-version=$version"
|
yarn lerna exec "yarn version --no-git-tag-version --new-version=$version"
|
||||||
echo "Updating dependencies"
|
echo "Updating dependencies"
|
||||||
|
|
Loading…
Reference in New Issue