From 1a39ee185588cc6591967b46fdaed024090a7f6e Mon Sep 17 00:00:00 2001 From: Roman Zaiev Date: Tue, 10 Nov 2026 17:49:07 +0000 Subject: [PATCH 1/2] Release a version CHANGES.md names, whatever its date make release refused a commit whose CHANGES.md did not open with the version and today's date, so the version was named in a pull request of its own and renamed again when a release ran past midnight. It now checks the version alone, which the pull request that completes the release names, as Hypha's LIBRARY.md says. --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3c54006..0b39089 100644 --- a/Makefile +++ b/Makefile @@ -56,8 +56,7 @@ docs: docs/node_modules ## build the documentation site docs-serve: docs ## serve the built documentation site cd docs && bun --bun astro preview --open --port $(DOCS_PORT) -release: ## release VERSION, once CHANGES.md names it: open-opam tags it and makes its release - @test -n "$(VERSION)" || { echo "Give the version: make release VERSION=1.2.3" >&2; exit 2; } - @test "$$(git show HEAD:CHANGES.md | grep -m1 '^## ')" = "## $(VERSION) ($$(date +%F))" \ - || { echo "The commit to release must open CHANGES.md with ## $(VERSION) ($$(date +%F))" >&2; exit 2; } +release: ## tag VERSION and make its release + @test "$$(git show HEAD:CHANGES.md | grep -m1 '^## ' | cut -d' ' -f2)" = "$(VERSION)" \ + || { echo "CHANGES.md must open with ## $(VERSION)" >&2; exit 2; } open-opam release $(VERSION) From 556c720e1a45fdc29a288fb2a00ea677b83a2037 Mon Sep 17 00:00:00 2001 From: Roman Zaiev Date: Tue, 10 Nov 2026 18:00:32 +0000 Subject: [PATCH 2/2] Release by open-opam alone open-opam release already holds a commit to its CI and open-opam's gates before it tags it; the check of CHANGES.md's heading beside it added nothing a release needs. --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index 0b39089..610200a 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,4 @@ docs-serve: docs ## serve the built documentation site cd docs && bun --bun astro preview --open --port $(DOCS_PORT) release: ## tag VERSION and make its release - @test "$$(git show HEAD:CHANGES.md | grep -m1 '^## ' | cut -d' ' -f2)" = "$(VERSION)" \ - || { echo "CHANGES.md must open with ## $(VERSION)" >&2; exit 2; } open-opam release $(VERSION)