cmc_fe/create-release.sh
2023-03-24 17:10:13 +00:00

18 lines
278 B
Bash
Executable file

#!/bin/bash
method="patch"
if [[ $1 != "" ]]; then
method=$1
fi
npm version $method
if [[ $? != 0 ]]; then
exit
fi
npm run build
if [[ $? == 0 ]]; then
tar czf cmc_fe.tar.gz dist
git add . cmc_fe.tar.gz
git commit -m "updated cmc_fe.tar.gz"
git push
fi