generated from actions/container-toolkit-action
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
26 lines (18 loc) · 655 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: all list release version
VERSION := $(shell node -p -e "require('./package.json').version")
LEAD := $(shell head -n 1 LEAD.md)
all: list
list:
@grep '^\.PHONY' Makefile | cut -d' ' -f2- | tr ' ' '\n'
install:
pip install -r requirements.txt
pip install livemark
npm install
release:
git checkout main && git pull origin && git fetch -p
@git log --pretty=format:"%C(yellow)%h%Creset %s%Cgreen%d" --reverse -20
@echo "\nReleasing v$(VERSION) in 10 seconds. Press <CTRL+C> to abort\n" && sleep 10
npm test && git commit -a -m 'v$(VERSION)' && git tag -a v$(VERSION) -m 'v$(VERSION)'
git push --follow-tags
version:
@echo $(VERSION)