mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-07 06:33:38 +00:00
* configure build stages on release tags + publish bpmn-io/bower-bpmn-js + update bpmn-io/bpmn-js-seed + update bpmn-io/bpmn-js-integration
29 lines
705 B
Bash
Executable File
29 lines
705 B
Bash
Executable File
#! /bin/sh
|
|
|
|
# publishes the bower-bpmn-js prebuilt bundle
|
|
|
|
PWD="$(pwd)"
|
|
WORKDIR="$(pwd)/tmp"
|
|
BOWER_DIR="$WORKDIR/bower-bpmn-js"
|
|
|
|
# create work dir
|
|
mkdir -p "$WORKDIR"
|
|
|
|
git clone --depth=1 https://github.com/bpmn-io/bower-bpmn-js.git "$BOWER_DIR"
|
|
|
|
npm install
|
|
BOWER_DIST="$BOWER_DIR/dist" npm run distro
|
|
|
|
cd "$BOWER_DIR"
|
|
|
|
git config user.email "$BPMN_IO_EMAIL"
|
|
git config user.name "$BPMN_IO_USERNAME"
|
|
git config push.default simple
|
|
|
|
git add -A
|
|
git commit -m "chore(project): package $TRAVIS_TAG"
|
|
git tag "$TRAVIS_TAG"
|
|
git push -q "https://$GITHUB_AUTH@github.com/bpmn-io/bower-bpmn-js.git" &2>/dev/null
|
|
git push --tags -q "https://$GITHUB_AUTH@github.com/bpmn-io/bower-bpmn-js.git" &2>/dev/null
|
|
|
|
cd "$PWD" |