diff --git a/README.md b/README.md index 7a55638..0fccc63 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # TypeORM Cursor Pagination [![Build Status](https://travis-ci.com/benjamin658/typeorm-cursor-pagination.svg?branch=master)](https://travis-ci.com/benjamin658/typeorm-cursor-pagination) +[![codecov](https://codecov.io/gh/benjamin658/typeorm-cursor-pagination/branch/master/graph/badge.svg?token=R1PBLUITU7)](https://codecov.io/gh/benjamin658/typeorm-cursor-pagination) [![npm version](https://badge.fury.io/js/typeorm-cursor-pagination.svg)](https://badge.fury.io/js/typeorm-cursor-pagination) [![Maintainability](https://api.codeclimate.com/v1/badges/9ad73ee4890101f8ac38/maintainability)](https://codeclimate.com/github/benjamin658/typeorm-cursor-pagination/maintainability) [![license](https://img.shields.io/github/license/benjamin658/typeorm-cursor-pagination)](https://github.com/benjamin658/typeorm-cursor-pagination/blob/master/License) diff --git a/release.sh b/release.sh deleted file mode 100755 index ad40887..0000000 --- a/release.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -PUSH_TO_ORIGIN=false - -while getopts "v:p" argv -do - case $argv in - v) - RELEASE_VERSION=$OPTARG - ;; - p) - PUSH_TO_ORIGIN=true - ;; - esac -done - -if [ -z "$RELEASE_VERSION" ]; then - echo -e "\033[0;31m[ERROR]: Missing release version -v option.\033[0m" - exit 1 -fi - -SEMVER_REGEX="^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(\\-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$" - -if [[ $RELEASE_VERSION =~ $SEMVER_REGEX ]]; then - echo -e "\033[0;32m[INFO]: Start to release version $RELEASE_VERSION." -else - echo -e "\033[0;31m[ERROR]: Version $RELEASE_VERSION doesn't match the semver scheme $SEMVER_REGEX.\033[0m" - exit 1 -fi - -git checkout develop && git pull --rebase -git checkout master && git pull --rebase -git merge develop -npx standard-version --release-as $RELEASE_VERSION -git checkout develop -git merge master - -if $PUSH_TO_ORIGIN ; then - echo -e "\033[0;32m[INFO]: Push to origin" - git push origin develop - git push origin master - git push --tags -fi - -echo -e "\033[0;32m[INFO]: Version $RELEASE_VERSION has been successfully released."