From 32b623f59dd16f4a1cba3e2dbde305960394a47d Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 7 Feb 2026 23:59:58 +0000 Subject: [PATCH] Simplify make release to trigger the GitHub workflow Instead of duplicating the release logic locally, `make release` now just validates the version format and triggers the create-release workflow via `gh workflow run`. https://claude.ai/code/session_0158SxS2ATe6PL8zTpsoHRFn --- Makefile | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index c0e0225..2a74ccb 100644 --- a/Makefile +++ b/Makefile @@ -16,15 +16,8 @@ package: build clean: rm -f $(WASM_FILE) $(PLUGIN_NAME).ndp -release: test +release: @if [[ ! "${V}" =~ ^[0-9]+\.[0-9]+\.[0-9]+.*$$ ]]; then echo "Usage: make release V=X.X.X"; exit 1; fi - go mod tidy - @if [ -n "`git status -s`" ]; then echo "\n\nThere are pending changes. Please commit or stash first"; exit 1; fi - @if [[ "$$(git branch --show-current)" != "main" ]]; then echo "Releases must be created from the main branch"; exit 1; fi - @# Update version in manifest.json - @sed -i 's/"version": *"[^"]*"/"version": "${V}"/' manifest.json - git add manifest.json - git commit -m "Release v${V}" --allow-empty --no-verify - git tag v${V} - git push origin main v${V} --no-verify + gh workflow run create-release.yml -f version=${V} + @echo "Release v${V} workflow triggered. Check progress: gh run list --workflow=create-release.yml" .PHONY: release