From e1673cac9746da4c676147f41470833f9f60553f Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 12 May 2024 12:16:30 +0200 Subject: [PATCH] [DEV] error in position of update --- .island/release.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.island/release.bash b/.island/release.bash index 1b9de2c..c787154 100755 --- a/.island/release.bash +++ b/.island/release.bash @@ -2,10 +2,11 @@ version_file="version.txt" +new_version=$(cat $version_file) +sed -i "s|\"version\":.*\".*\"|\"version\":\"$new_version\"|" package.json + if grep -q "dev" "$version_file"; then # update all dependency - new_version=$(cat $version_file) - sed -i "s|\"version\":.*\".*\"|\"version\":\"$new_version\"|" package.json pnpm install pnpm run update_packages else