diff --git a/bumpp.sh b/bumpp.sh index f60b90c..87596a4 100755 --- a/bumpp.sh +++ b/bumpp.sh @@ -1,8 +1,10 @@ #!/bin/sh -set -e +set -xe -sed -i "s/\${version}/$VERSION/g" package.json +frontend_version=$(sed -n 's/.*"VERSION": "\([^"]*\)".*/\1/p' ./frontend/version.json) -sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json +sed -i "s/\${version}/$frontend_version/g" package.json + +sed -i "s/\"version\": \".*\"/\"version\": \"$frontend_version\"/" package.json