feat(release): introduce interactive mode

This commit is contained in:
kj
2026-10-05 16:22:17 -03:00
parent df2e6e1dfe
commit 6e7b572935
4 changed files with 235 additions and 48 deletions
+4 -1
View File
@@ -4,7 +4,7 @@
CONFIG := packages/commands/src/Toolbox/Config.php
VERSION := $(shell grep -oP "const VERSION = '\K[^']+" $(CONFIG))
.PHONY: help test build publish check clean
.PHONY: help test build release publish check clean
help: ## Muestra esta ayuda
@grep -hE '^[a-z-]+:.*## ' $(MAKEFILE_LIST) | sed -E 's/^([a-z-]+):.*## (.+)$$/ make \1 \xe2\x80\x94 \2/'
@@ -15,6 +15,9 @@ test: ## Corre la suite de pruebas (harness propio, sin phpunit)
build: ## Construye dist/duckbrain.phar y su .sha256
scripts/build-phar
release: ## Asistente interactivo para versionar un paquete (scripts/release)
./scripts/release $(if $(ARGS),$(ARGS),)
publish: build ## Crea/mueve la release v$(VERSION) en Forgejo y sube los assets
scripts/publish-phar