Skip to content

Commit 4fb6106

Browse files
committed
make release NPM_VERSION=minor
1 parent 5ca38d8 commit 4fb6106

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ git_branch := $(shell git rev-parse --abbrev-ref HEAD)
33

44
.PHONY: test release
55

6+
ifndef NPM_VERSION
7+
export NPM_VERSION=patch
8+
endif
9+
610
install:
711
npm install
812

@@ -14,8 +18,9 @@ test: install eslint
1418
@$(shell npm bin)/mocha tests/*-tests.js
1519

1620
npm.publish:
21+
echo "building ${NPM_VERSION}"
1722
git pull --tags
18-
npm version patch
23+
npm version ${NPM_VERSION}
1924
git push origin $(git_branch) && git push --tags
2025
npm publish --access public
2126

0 commit comments

Comments
 (0)