geomagnetism
Version:
Computes geomagnetic field information
22 lines (18 loc) • 432 B
Plain Text
_MOCHA=node_modules/.bin/_mocha
test:
npm run test-ci
release: test
ifeq ($(strip $(version)),)
@echo "\033[31mERROR:\033[0;39m No version provided"
@echo "\033[1;30mmake release version=1.0.0\033[0;39m"
else
ifneq ($(shell git diff --stat),)
@echo "Changes must be committed before running a release"
else
npm version $(version)
npm publish
git push origin master
git push origin --tags
endif
endif