diff --git a/Makefile b/Makefile index 13854db..fe08d61 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,12 @@ .PHONY: new-version -new-version: - $(if $(shell which npx),,\ - $(error No npx found in PATH, please install NodeJS)) - $(if $(shell which standard-version),,\ - $(error No standard-version found in PATH, install with: \ - npm install -g standard-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))