cmc_fe/create-release.sh

18 lines
280 B
Bash
Raw Normal View History

2023-01-19 13:55:12 +01:00
#!/bin/bash
2023-03-24 18:09:06 +01:00
method="patch"
if [[ $1 != "" ]]; then
method=$1
fi
2023-04-03 15:49:10 +02:00
pnpm version $method
2023-03-24 18:10:13 +01:00
if [[ $? != 0 ]]; then
exit
fi
2023-04-03 15:49:10 +02:00
pnpm run build
2023-01-19 14:27:30 +01:00
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