tethys-feature-service/node_modules/proj4/publish.sh

22 lines
372 B
Bash
Raw Normal View History

2023-10-02 13:04:02 +00:00
#!/bin/bash
# get current version
VERSION=$(node -e "console.log(require('./package.json').version)")
# Build
git checkout -b build
node_modules/.bin/grunt
git add dist -f
git commit -m "build $VERSION"
# Tag and push
git tag $VERSION
git push --tags git@github.com:proj4js/proj4js.git $VERSION
# Publish
npm publish
# Cleanup
git checkout master
git branch -D build