2020-01-22 13:32:11 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
# bumps bpmn-js and diagram-js dependencies in bpmn-io-demo
|
|
|
|
|
|
|
|
PWD="$(pwd)"
|
|
|
|
WORKDIR="$(pwd)/tmp"
|
|
|
|
CLONE_DIR="$WORKDIR/bpmn-io-demo"
|
|
|
|
|
|
|
|
# create work dir
|
|
|
|
mkdir -p "$WORKDIR"
|
|
|
|
|
2020-02-04 08:30:43 +00:00
|
|
|
git clone --depth=1 "https://$GITHUB_AUTH@github.com/$BPMN_IO_DEMO_ENDPOINT.git" "$CLONE_DIR"
|
2020-01-22 13:32:11 +00:00
|
|
|
|
|
|
|
cd "$CLONE_DIR"
|
|
|
|
|
|
|
|
npm install --save bpmn-js@latest diagram-js@latest
|
|
|
|
|
|
|
|
git config user.email "$BPMN_IO_EMAIL"
|
|
|
|
git config user.name "$BPMN_IO_USERNAME"
|
|
|
|
git config push.default simple
|
|
|
|
|
|
|
|
git add -A
|
2020-12-17 23:27:33 +00:00
|
|
|
git commit -m "deps: bump bpmn-js to $TRAVIS_TAG"
|
2020-01-22 13:32:11 +00:00
|
|
|
git tag "bpmn-js-$TRAVIS_TAG"
|
2020-02-04 08:30:43 +00:00
|
|
|
git push -q &2>/dev/null
|
|
|
|
git push --tags -q &2>/dev/null
|
2020-01-22 13:32:11 +00:00
|
|
|
|
|
|
|
cd "$PWD"
|