#!/bin/sh
echo "Build started on $(date)"
npm install
CURRENT_VERSION=$(npm run version --silent)
if [[ "$CURRENT_VERSION" == *"beta"* ]]; then
    npm publish --tag beta || true
else
   npm publish || true
fi
