Skip to content

Commit

Permalink
add autocommit.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Nov 18, 2019
1 parent a2547ce commit f5090f7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/autocommit.sh
@@ -0,0 +1,16 @@
#!/bin/bash

cd "$(dirname "${BASH_SOURCE[0]}")/.."

git fetch --tags origin master
git reset --hard origin/master
rm -rf node_modules
yarn
npx grunt generate

if [[ $(git status --porcelain) ]]; then
npm t || exit 1
git commit -am "automated regeneration"
npx grunt patch
git push --tags origin master
fi

0 comments on commit f5090f7

Please sign in to comment.