Skip to content

Commit 226722c

Browse files
author
Tonye Jack
committed
Updated Makefile.
1 parent 29384a0 commit 226722c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ create-new-release:
1818
@echo "Increasing version..."
1919
@echo "Current version $(CURRENT_VERSION)"
2020
@npm version $(PART) -m "Bumped from $(CURRENT_VERSION) to version %s"
21-
@echo $(shell git describe "$(shell git rev-list --tags --max-count=1)" --tags) > .version
22-
@echo "Increased version to $(shell cat .version)"
21+
@$(eval NEW_VERSION=$(shell git describe "$(shell git rev-list --tags --max-count=1)" --tags))
22+
@echo "Increased version to $(NEW_VERSION)"
23+
@echo $(NEW_VERSION) > .version
2324

0 commit comments

Comments
 (0)