mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 03:50:36 +03:00
build: add the check git shell
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check current branch
|
||||||
|
if test "master" != "$(git symbolic-ref --short HEAD)"; then
|
||||||
|
echo 'Not on `master` branch.' >&2;
|
||||||
|
exit 128;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Check local working tree
|
||||||
|
if test -n "$(git status --porcelain)"; then
|
||||||
|
echo 'Unclean working tree. Commit or stash changes first.' >&2;
|
||||||
|
exit 128;
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check remote history
|
||||||
|
if test "0" != "$(git rev-list --count --left-only @'{u}'...HEAD)"; then
|
||||||
|
echo 'Remote history differ. Please pull changes.' >&2;
|
||||||
|
exit 128;
|
||||||
|
fi
|
||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
|
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
|
||||||
"test:push": "jest --coverage --coverageReporters=text-lcov | coveralls",
|
"test:push": "jest --coverage --coverageReporters=text-lcov | coveralls",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"release": "bash build/release.sh"
|
"release": "bash build/git.sh && bash build/release.sh"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user