kar-cw/.island/release.bash

17 lines
358 B
Bash
Raw Normal View History

2024-05-12 11:52:11 +02:00
#!/bin/bash
version_file="version.txt"
2024-05-12 12:16:30 +02:00
new_version=$(cat $version_file)
sed -i "s|\"version\":.*\".*\"|\"version\":\"$new_version\"|" package.json
2024-05-12 11:52:11 +02:00
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