From 1fba3842dae25d5ef5c4e4aba04527250866e8e0 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 7 Apr 2021 23:44:37 +0100 Subject: [PATCH] feat(makefile): add next-version target to preview next version and changelog --- Makefile | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7e7647e..a1dce1d 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,6 @@ default: vendor -.PHONY: new-version -new-version: - $(if $(shell which npx),,\ - $(error No npx found in PATH, please install NodeJS)) - npx standard-version - # # Functions. # @@ -48,3 +42,19 @@ vendor: $(VENDORED) update_vendor: $(foreach file,$(VENDORED),update_$(file)) remove_vendor: $(foreach file,$(VENDORED),remove_$(file)) +# +# Release +# + +.PHONY: new-version +new-version: check-npx + npx standard-version + +.PHONY: next-version +next-version: check-npx + npx standard-version --dry-run + +.PHONY: check-npx +check-npx: + $(if $(shell which npx),,\ + $(error No npx execuable found in PATH, please install NodeJS))