message: changing sequence of publish script
diff: @@ -9,21 +9,30 @@ if [[ -n $DIFF ]]; then
  echo 'There are unstaged changed, please commit changes before publishing'
  exit 1
  +
  fi
  if [[ -z $npm_package_version ]]; then
  echo 'Unable to determine package version to publish'
  exit 1
  +
  fi
  cd $ROOT
  -if [[ $BRANCH != 'develop' ]]; then
  git checkout develop
  -fi
  +git pull
  +git push
  +
  +git checkout master
  +git pull
  +
  +git merge develop
  +git push
  yarn lint:fix
  +
  if [[ $? != 0 ]]; then
  echo
  echo "Fix yo lint errors"
  @@ -49,18 +58,12 @@ if [[ $? != 0 ]]; then
  exit 1
  fi
  -git push
  -git checkout master
  -git merge develop
  -
  for pkg in ./modules/*; do
  if [[ -d $pkg ]]; then
  yarn publish --access public --new-version $npm_package_version $pkg
  fi
  done
  -git push
  -
  # pushes the tag
  git push origin $npm_package_version
  