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