fix: make release
This commit is contained in:
parent
13f6a6812a
commit
bda2e22b35
2
Makefile
2
Makefile
@ -79,7 +79,7 @@ docs: ## Serve package documentation locally via pkgsite (http://localhost:8080)
|
|||||||
|
|
||||||
# ── Release ────────────────────────────────────────────────────────────────────
|
# ── Release ────────────────────────────────────────────────────────────────────
|
||||||
release: ## List releases, or tag+push a new one (usage: make release VERSION=v0.1.0)
|
release: ## List releases, or tag+push a new one (usage: make release VERSION=v0.1.0)
|
||||||
ifdef VERSION
|
ifeq ($(origin VERSION), command line)
|
||||||
@echo "$(VERSION)" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$$' || \
|
@echo "$(VERSION)" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$$' || \
|
||||||
(echo "VERSION must be semver: v0.1.0"; exit 1)
|
(echo "VERSION must be semver: v0.1.0"; exit 1)
|
||||||
@git diff --quiet && git diff --cached --quiet || \
|
@git diff --quiet && git diff --cached --quiet || \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user