kar-cw/.island/release.bash

16 lines
365 B
Bash
Executable File

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