Skip to content

Commit 09e6192

Browse files
committed
releng tasks
1 parent 5d316cd commit 09e6192

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This is the revision history of @msgpack/msgpack
2+
3+
TODO: changes should be logged after v1.0.0

Makefile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,23 @@ test:
33
npm run test:browser
44
npm run test:cover
55

6-
dist: test
6+
dist: validate-git-status test
77
npm publish
88
git push origin master
99
git push origin master --tags
1010

11-
.PHONY: build test dist
11+
validate-git-status:
12+
@ git fetch
13+
@ if [ "`git symbolic-ref --short HEAD`" != "master" ] ; \
14+
then echo "Not on the master branch!\n" ; exit 1 ; \
15+
fi
16+
@ if [ "`git rev-parse --short master`" != "`git rev-parse --short origin/master`" ] ; \
17+
then echo "Git commit mismatch in local and remote!\n" ; git status ; exit 1 ; \
18+
fi
19+
@ if ! git diff --exit-code --quiet ; \
20+
then echo "Local differences!\n" ; git status ; exit 1 ; \
21+
fi
22+
23+
24+
25+
.PHONY: test dist validate-branch

0 commit comments

Comments
 (0)