Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add automatic changelog for builds (#4)
- Loading branch information
1 parent
6e210f0
commit e3c3746
Showing
14 changed files
with
15,979 additions
and
19 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,6 +1,5 @@ | ||
.DS_Store | ||
node_modules/ | ||
dist/ | ||
coverage/ | ||
.nyc_output/ | ||
yarn-debug.log | ||
|
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
Empty file.
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
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
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
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,53 @@ | ||
set -e | ||
|
||
CLEAR='\033c' | ||
GREEN='\033[0;32m' | ||
YELLOW='\033[0;33m' | ||
BLUE='\033[0;34m' | ||
NC='\033[0m' | ||
|
||
# init the process | ||
if [[ -z $1 ]]; then | ||
printf $CLEAR | ||
echo "${BLUE}Enter new version: ${NC}" | ||
read VERSION | ||
else | ||
VERSION=$1 | ||
fi | ||
|
||
read -p "Releasing $VERSION - are you sure? (y/n) " -n 1 -r | ||
|
||
if [[ $REPLY =~ ^[Yy]$ ]]; then | ||
echo "${CLEAR}Releasing Vue Material - ${GREEN}Version $VERSION${NC}" | ||
|
||
|
||
echo "\n${YELLOW}Checking for errors... ${NC}" | ||
yarn lint | ||
|
||
|
||
echo "\n${YELLOW}Running all tests... ${NC}" | ||
yarn test | ||
|
||
|
||
echo "\n${YELLOW}Generating build... ${NC}" | ||
VERSION=$VERSION yarn build | ||
|
||
|
||
echo "\n${YELLOW}Generating changelog... ${NC}" | ||
yarn changelog | ||
rm -rf RELEASE_NOTES.md | ||
|
||
|
||
echo "\n${YELLOW}Commiting... ${NC}" | ||
git add -A | ||
git commit -m "chore: build $VERSION" | ||
npm version $VERSION --message "chore: release $version" | ||
git push | ||
|
||
|
||
echo "\n${YELLOW}Publishing a new release... ${NC}" | ||
npm publish | ||
|
||
|
||
echo "\n${GREEN}BUILD FINISHED WITH SUCCESS!${NC}" | ||
fi |
Oops, something went wrong.