[DEV] error in position of update

This commit is contained in:
Edouard DUPIN 2024-05-12 12:16:30 +02:00
parent 7388e167a7
commit e1673cac97

View File

@ -2,10 +2,11 @@
version_file="version.txt" 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 if grep -q "dev" "$version_file"; then
# update all dependency # update all dependency
new_version=$(cat $version_file)
sed -i "s|\"version\":.*\".*\"|\"version\":\"$new_version\"|" package.json
pnpm install pnpm install
pnpm run update_packages pnpm run update_packages
else else