Leaflet/build/publish.sh

23 lines
351 B
Bash
Raw Normal View History

#!/bin/bash
npm update
VERSION=$(node --eval "console.log(require('./package.json').version);")
npm test || exit 1
git checkout -b build
2016-04-18 16:10:27 +08:00
jake build[,,true]
git add dist/leaflet-src.js dist/leaflet.js dist/leaflet-src.map -f
git commit -m "v$VERSION"
git tag v$VERSION -f
git push --tags -f
2016-09-27 21:22:54 +08:00
npm publish
git checkout master
git branch -D build