Skip to content

Commit

Permalink
fix: Add missing patch variable for minor push (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
toninis committed Apr 26, 2024
1 parent 9ee3fef commit a7c5a57
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit a7c5a57

Please sign in to comment.