[DEV] error in position of update
This commit is contained in:
parent
7388e167a7
commit
e1673cac97
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user