#!/bin/bash

set -e

branch=$(
  cd $root_dir
  git symbolic-ref --short -q HEAD
)

echo $branch

if [[ $branch="develop" ]]; then
  # npm adduser --registry=https://registry.npmjs.org/ --scope=@oseberg <<!
  #   $NPM_USERNAME
  #   $NPM_PASSWORD
  #   $NPM_EMAIL
  #   !;
  npm publish
fi
