Leaflet/build/publish.sh
Vladimir Agafonkin ca43794128 simplify bower setup, remove component
Component is not an active project anymore, and bower no longer
requires a version field in the config.
2015-10-26 19:25:39 +02:00

23 lines
357 B
Bash
Executable File

#!/bin/bash
npm update
VERSION=$(node --eval "console.log(require('./package.json').version);")
npm test || exit 1
git checkout -b build
npm run build
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
npm publish --tag beta
git checkout master
git branch -D build