#!/bin/bash

# PUBLISH SCRIPT
# need also a .npmrc file with login token for npm registry
npm version patch &&
npm install &&
npm run build &&
npm prune &&
rm -rf node_modules &&
npm install --production &&
npm shrinkwrap &&

npm publish