fix: properly replace version
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2023-09-04 22:09:02 +02:00
parent e5b4cc23e4
commit 5977a931d0
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
set -e
cat package.json | sed "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" > tmp.json
mv tmp.json package.json
sed -i "s/\${version}/$VERSION/g" package.json
sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json