#!/bin/bash if [ -z "$1" ] then echo "Must specify the release type: major, minor, patch" exit; fi yarn version --$1 git checkout develop git push origin develop git checkout master git pull . develop git push origin master git checkout develop