2021-09-16 08:20:55 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-09-16 08:21:56 +00:00
|
|
|
set -eo pipefail
|
|
|
|
shopt -s inherit_errexit nullglob
|
2020-01-22 13:32:11 +00:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2021-09-16 08:18:12 +00:00
|
|
|
git clone --depth=1 "https://$BPMN_IO_TOKEN@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
|
|
|
|
|
2021-09-16 08:20:55 +00:00
|
|
|
if [[ "x$SKIP_COMMIT" = "x" ]]; then
|
|
|
|
|
|
|
|
git config user.email "$BPMN_IO_EMAIL"
|
|
|
|
git config user.name "$BPMN_IO_USERNAME"
|
|
|
|
git config push.default simple
|
2020-01-22 13:32:11 +00:00
|
|
|
|
2021-09-16 08:20:55 +00:00
|
|
|
git add -A
|
|
|
|
git commit -m "deps: bump to bpmn-js@$TAG"
|
|
|
|
git tag "bpmn-js-$TAG"
|
|
|
|
git push -q &2>/dev/null
|
|
|
|
git push --tags -q &2>/dev/null
|
|
|
|
else
|
|
|
|
echo "Skipping commit (SKIP_COMMIT=$SKIP_COMMIT)"
|
|
|
|
fi
|
2020-01-22 13:32:11 +00:00
|
|
|
|
|
|
|
cd "$PWD"
|