GeoNode/geonode-viewer

View on GitHub
publish.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

npm update

VERSION=$(node --eval "console.log(require('./package.json').version);")

npm test || exit 1

git checkout -b build

npm run dist
git add dist/viewer.min.js dist/js dist/css -f

git commit -m "v$VERSION"

git tag v$VERSION -f
git push --tags -f

npm publish

git checkout master
git branch -D build