#!/usr/bin/env bash
git push --tags
yarn build

if yarn publish . --access public --new-version $npm_package_version --tag latest; then
  echo "version $npm_package_version published; do not forget to push your changes to repository"
else
  echo "Publish failed"
fi

read -n 1 -s -r -p "Press any key to continue"
