From a7c5a57a1141d77c6ba8761f59670e39c81678d8 Mon Sep 17 00:00:00 2001 From: Antonis Stamatiou Date: Fri, 26 Apr 2024 14:41:05 +0300 Subject: [PATCH] fix: Add missing patch variable for minor push (#122) --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b1118f8..943402a 100644 --- a/Makefile +++ b/Makefile @@ -190,10 +190,11 @@ patch: ## to bump patch version (semver) minor: ## to bump minor version (semver) @$(eval MINOR := $(shell echo $$(($(MINOR)+1)))) - @$(INFO) Bumping $(APP_NAME) to Minor version $(MAJOR).$(MINOR).0 - git tag -s -a v$(MAJOR).$(MINOR).0 -m "Bumping $(APP_NAME) to Minor version $(MAJOR).$(MINOR).0" + @$(eval PATCH := 0) + @$(INFO) Bumping $(APP_NAME) to Minor version $(MAJOR).$(MINOR).$(PATCH) + git tag -s -a v$(MAJOR).$(MINOR).$(PATCH) -m "Bumping $(APP_NAME) to Minor version $(MAJOR).$(MINOR).$(PATCH)" git push origin v$(MAJOR).$(MINOR).$(PATCH) - @$(OK) Bumping $(APP_NAME) to Minor version $(MAJOR).$(MINOR).0 + @$(OK) Bumping $(APP_NAME) to Minor version $(MAJOR).$(MINOR).$(PATCH) major: ## to bump major version (semver) $(eval MAJOR := $(shell echo $$(($(MAJOR)+1))))