Skip to content

Commit da52573

Browse files
committed
doc: Facilitando a criação de versão do projeto.
1 parent dc15ed8 commit da52573

File tree

4 files changed

+53
-14
lines changed

4 files changed

+53
-14
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ build/
2828

2929
### VS Code ###
3030
.vscode/
31-
.settings
31+
.settings
32+
package-lock.json
33+
node_modules

CHANGELOG.md

-13
This file was deleted.

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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)

new_release.sh

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)