tools(make): release target

This commit is contained in:
2026-07-17 11:13:17 +02:00
parent f92baf3b82
commit c567a6a9d5
+8
View File
@@ -59,3 +59,11 @@ npm-update: ## npm update
.PHONY: npm-run-% .PHONY: npm-run-%
npm-run-%: node_modules ## npm run (script) npm-run-%: node_modules ## npm run (script)
$(NPM) run $* $(NPM) run $*
.PHONY: release-%
release-%: node_modules ## release major/minor/patch
$(NPM) pm version $* --no-git-tag-version || true
git add package.json
git commit -m "chore: release $$(cat package.json | jq -r .version)"
git tag "release/$$(cat package.json | jq -r .version)" -m "md-blog $$(cat package.json | jq -r .version)"