File tree 4 files changed +53
-14
lines changed
4 files changed +53
-14
lines changed Original file line number Diff line number Diff line change 28
28
29
29
# ## VS Code ###
30
30
.vscode /
31
- .settings
31
+ .settings
32
+ package-lock.json
33
+ node_modules
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [ ![ Actions Status] ( https://github.com/danielso2007/somejava8examples/workflows/JavaCI/badge.svg )] ( https://github.com/danielso2007/somejava8examples/actions )
2
+
3
+ ![ Coveralls github] ( https://img.shields.io/coveralls/github/danielso2007/somejava8examples )
4
+
5
+ ![ GitHub repo size] ( https://img.shields.io/github/repo-size/danielso2007/somejava8examples )
6
+
7
+ ![ GitHub contributors] ( https://img.shields.io/github/contributors/danielso2007/somejava8examples )
8
+
9
+ ![ GitHub last commit (branch)] ( https://img.shields.io/github/last-commit/danielso2007/somejava8examples/master )
10
+
11
+ ![ GitHub issues] ( https://img.shields.io/github/issues/danielso2007/somejava8examples )
12
+
13
+ ![ GitHub pull requests] ( https://img.shields.io/github/issues-pr/danielso2007/somejava8examples )
14
+
15
+ ![ GitHub All Releases] ( https://img.shields.io/github/downloads/danielso2007/somejava8examples/total )
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ RED=' \033[1;31m'
3
+ BLACK=' \033[0;30m'
4
+ DARK_GRAY=' \033[1;30m'
5
+ LIGHT_RED=' \033[0;31m'
6
+ GREEN=' \033[0;32m'
7
+ LIGHT_GREEN=' \033[1;32m'
8
+ BROWN_ORANGE=' \033[0;33m'
9
+ YELLOW=' \033[1;33m'
10
+ BLUE=' \033[0;34m'
11
+ LIGHT_BLUE=' \033[1;34m'
12
+ PURPLE=' \033[0;35m'
13
+ LIGHT_PURPLE=' \033[1;35m'
14
+ CYAN=' \033[0;36m'
15
+ LIGHT_CYAN=' \033[1;36m'
16
+ LIGHT_GRAY=' \033[0;37m'
17
+ WHITE=' \033[1;37m'
18
+ NC=' \033[0m' # No Color
19
+ set -e
20
+ BRANCH=$1
21
+ VERSION=$2
22
+ DRYRUN=$3
23
+ if [[ -z " $1 " ]] || [[ -z " $2 " ]]; then
24
+ echo -e " ${RED} Usage:${NC} ${LIGHT_RED} ./new_release.sh [BRANCH] [VERSION]${NC} or ${LIGHT_RED} ./new_release.sh [BRANCH] [VERSION] [test - DRY-RUN]${NC} "
25
+ else
26
+ echo -e " ${YELLOW} Branch:${NC} ${LIGHT_PURPLE}${BRANCH}${NC} "
27
+ echo -e " ${YELLOW} Version:${NC} ${LIGHT_PURPLE}${VERSION}${NC} "
28
+ if [[ " $3 " ]]; then
29
+ echo -e " ${YELLOW} Dry-run:${NC} ${LIGHT_PURPLE} YES${NC} "
30
+ npm run release -- --release-as ${VERSION} --dry-run
31
+ else
32
+ npm run release -- --release-as ${VERSION}
33
+ git push --follow-tags origin ${BRANCH}
34
+ fi
35
+ fi
You can’t perform that action at this time.
0 commit comments