#!/usr/bin/env bash set -x # print commands before execution set -o errexit # always exit on error set -o pipefail # honor exit codes when piping set -o nounset # fail on unset variables git clone https://github.com/electron/electron-apps app cd app npm install --quiet npm run test-all [[ `git status --porcelain` ]] || exit 0 git config user.email "electron@github.com" git config user.name "Electron Bot" git add . git commit -am "update apps" --author "Electron Bot " npm version minor -m "bump minor to %s" git push origin master --follow-tags npm publish