Update release target in Makefile to include test step before tagging

This commit is contained in:
deluan
2026-02-03 11:26:35 -05:00
parent fb8fb34a84
commit 92f2ffbd70

View File

@@ -15,11 +15,10 @@ package: build
clean: clean:
rm -f $(WASM_FILE) $(PLUGIN_NAME).ndp rm -f $(WASM_FILE) $(PLUGIN_NAME).ndp
release: release: test
@if [[ ! "${V}" =~ ^[0-9]+\.[0-9]+\.[0-9]+.*$$ ]]; then echo "Usage: make release V=X.X.X"; exit 1; fi @if [[ ! "${V}" =~ ^[0-9]+\.[0-9]+\.[0-9]+.*$$ ]]; then echo "Usage: make release V=X.X.X"; exit 1; fi
go mod tidy go mod tidy
@if [ -n "`git status -s`" ]; then echo "\n\nThere are pending changes. Please commit or stash first"; exit 1; fi @if [ -n "`git status -s`" ]; then echo "\n\nThere are pending changes. Please commit or stash first"; exit 1; fi
make pre-push
git tag v${V} git tag v${V}
git push origin v${V} --no-verify git push origin v${V} --no-verify
.PHONY: release .PHONY: release