-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 582 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (18 loc) · 582 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: install docs tests changelog release
install:
@pip install -r requirements.txt
docs:
@mkdocs serve
tests:
@bats tests
changelog:
@git-changelog -T --bump=auto -o CHANGELOG.md -c angular -t keepachangelog -s feat,fix,docs,style,refactor,tests,chore
release: changelog
$(eval version := $(shell grep -m1 -oE '^## \[[^]]+\]' CHANGELOG.md | sed 's/^## \[//;s/\]$$//'))
@git add CHANGELOG.md
-@pre-commit run --files CHANGELOG.md
@git add CHANGELOG.md
@git commit -m "docs: Update changelog for version $(version)"
@git tag $(version)
@git push
@git push --tags