#!/bin/bash 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 pnpm install pnpm run update_packages else # in case of release ==> can not do it automatically ... echo not implemented fi