forked from kubernetes-client/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc4748f
commit b8a2272
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/bash | ||
|
||
. ./pre-check.sh | ||
|
||
tsc | ||
npm pack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
branch=$(git rev-parse --abbrev-ref HEAD) | ||
|
||
if [[ "${branch}" != "master" ]]; then | ||
echo "This script can only be run on the master branch. Current branch is ${branch}" | ||
exit 1 | ||
fi | ||
|
||
if ! git diff --quiet; then | ||
echo "This script must only run on a clean master branch." | ||
echo | ||
git status | ||
exit 1 | ||
fi | ||
|
||
untracked=$(git ls-files --exclude-standard --others) | ||
|
||
if [[ "${untracked}" != "" ]]; then | ||
echo "This script requires no untracked files." | ||
echo | ||
git status | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ if [[ "${1}x" == "x" ]]; then | |
exit 1 | ||
fi | ||
|
||
. ./pre-check.sh | ||
|
||
git tag ${1} | ||
git push upstream ${tag} | ||
|
||
|