fix: read frontend version from release zip
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2023-09-04 22:27:04 +02:00
parent 757e3f5c93
commit 51376d05de
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 3 deletions

View File

@ -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