Платформа ЦРНП "Мирокод" для разработки проектов
https://git.mirocod.ru
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
351 B
23 lines
351 B
2 years ago
|
#!/bin/bash
|
||
|
|
||
|
npm update
|
||
|
|
||
|
VERSION=$(node --eval "console.log(require('./package.json').version);")
|
||
|
|
||
|
npm test || exit 1
|
||
|
|
||
|
git checkout -b build
|
||
|
|
||
|
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
|
||
|
|
||
|
npm publish
|
||
|
|
||
|
git checkout master
|
||
|
git branch -D build
|