#!/bin/bash


if [ "$1" == "stable" ]; then
  npm version $(npm view @momo-kits/foundation@stable version)
  npm version patch
  npm publish --tag stable --access=public
elif [ "$1" == "latest" ]; then
  npm publish --tag latest --access=public
elif [ "$1" == "beta" ]; then
  npm publish --tag beta --access=public
else
  npm publish --tag alpha --access=public
fi

PACKAGE_NAME=$(npm pkg get name)
NEW_PACKAGE_VERSION=$(npm pkg get version)
