From 42e9de664b363b2b9b6c1d1327dd3bcf786f73da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=BBydek?= Date: Fri, 27 Sep 2024 10:38:26 +0200 Subject: [PATCH] build: extract correct version from package.json --- sync-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync-version.sh b/sync-version.sh index af24704..93e0273 100644 --- a/sync-version.sh +++ b/sync-version.sh @@ -1,2 +1,2 @@ -VERSION=$(grep '"version"' package.json | sed -E 's/.*"version": "([0-9]+\.[0-9]+\.[0-9]+)".*/\1/') +VERSION=$(jq -r '.version' package.json) jq --arg version "$VERSION" '.packageVersion = $version' config.json > temp.json && mv temp.json config.json