cmc_fe/create-release.sh

15 lines
243 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
npm version $method
npm 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