[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"
if grep -q "dev" "$version_file"; then
# update all dependency
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