From 1d09a2a7ab73e1d9b077cfb7bf21e0074dce6918 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 24 Oct 2022 22:53:48 +0100 Subject: [PATCH] chore(makefile): add Makefile with release helper targets --- .versionrc.json | 3 +++ Makefile | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .versionrc.json create mode 100644 Makefile diff --git a/.versionrc.json b/.versionrc.json new file mode 100644 index 0000000..f138aaa --- /dev/null +++ b/.versionrc.json @@ -0,0 +1,3 @@ +{ + "tagPrefix": "" +} \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fe08d61 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +.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))