11 lines
181 B
Bash
11 lines
181 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
if [ "$1" == "" ]; then
|
||
|
|
echo "Excpected a commit message when running $0"
|
||
|
|
exit 1
|
||
|
|
else
|
||
|
|
npm run build
|
||
|
|
git add dist/
|
||
|
|
git commit -m "$1"
|
||
|
|
git push
|
||
|
|
fi
|