#!/usr/bin/env bash
set -e # Stop on the first failure that occurs

npm run-script build-doc
npm run-script test-all # runs build-lib

if [[ `git status -s` != "" ]]; then
  echo "Changes were made prior to publish.  Get your commits in order!"
  exit 1
fi

git push
git push --tags
