1 | default:
|
2 | @npm test
|
3 |
|
4 | release: version changelog publish
|
5 |
|
6 | version:
|
7 | @npm version patch -m 'release %s'
|
8 |
|
9 | changelog:
|
10 | $(eval version := $(shell grep '"version"' package.json | cut -d'"' -f4))
|
11 | @node_modules/.bin/github-changes \
|
12 | --owner betit --repository orion \
|
13 | --auth --verbose \
|
14 | --use-commit-body \
|
15 | --tag-name v$(version) \
|
16 | --date-format '(YYYY/MM/DD)'
|
17 |
|
18 | publish:
|
19 | @git add CHANGELOG.md
|
20 | @git commit -m 'Update changelog'
|
21 | @git push --follow-tags
|
22 | @npm publish --access=public |
\ | No newline at end of file |