chore(release): update bower.json version when publishing bundle

This commit is contained in:
Nico Rehwaldt 2017-11-06 23:29:49 +01:00
parent 3108df3505
commit abddbb0889
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@ git config user.email "$BPMN_IO_EMAIL"
git config user.name "$BPMN_IO_USERNAME"
git config push.default simple
# update bower.json
BOWER_VERSION="${TRAVIS_TAG:1}"
sed -i -E "s/(\"version\": )\"[^\"]+\"/\1\"$BOWER_VERSION\"/" bower.json
# add all resources
git add -A
git commit -m "chore(project): package $TRAVIS_TAG"
git tag "$TRAVIS_TAG"