Skip to content

Commit 26d13f2

Browse files
committed
chore(makefile): add release-patch, release-minor, release-major targets
1 parent 2e7fd92 commit 26d13f2

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: install build test test-watch lint fmt clean publish
1+
.PHONY: install build test test-watch lint fmt clean release-patch release-minor release-major publish
22

33
install:
44
npm install
@@ -21,5 +21,17 @@ fmt:
2121
clean:
2222
rm -rf dist node_modules
2323

24+
release-patch:
25+
npm version patch -m "release: %s"
26+
git push --follow-tags
27+
28+
release-minor:
29+
npm version minor -m "release: %s"
30+
git push --follow-tags
31+
32+
release-major:
33+
npm version major -m "release: %s"
34+
git push --follow-tags
35+
2436
publish:
2537
npm publish

0 commit comments

Comments
 (0)