tools(make): release target
This commit is contained in:
@@ -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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user