From 83bbb91abba3e85c9233446b6ad2ce15c93a2d57 Mon Sep 17 00:00:00 2001 From: strophy Date: Tue, 20 Apr 2021 18:34:36 +0200 Subject: [PATCH 1/2] chore(ci): delete travis script --- scripts/travis-deploy.sh | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 scripts/travis-deploy.sh diff --git a/scripts/travis-deploy.sh b/scripts/travis-deploy.sh deleted file mode 100644 index 2fc9732b..00000000 --- a/scripts/travis-deploy.sh +++ /dev/null @@ -1,31 +0,0 @@ -#! /bin/sh - -set -xe - -# Update this whenever the latest Node.js LTS version changes (~ every year). -# Do not forget to add this version to .travis.yml config also. -LATEST_LTS_VERSION="14" - -# We want this command to succeed whether or not the Node.js version is the -# latest (so that the build does not show as failed), but _only_ the latest -# should be used to publish the module. -if [ "$TRAVIS_NODE_VERSION" != "$LATEST_LTS_VERSION" ]; then - echo "Node.js v$TRAVIS_NODE_VERSION is not latest LTS version -- will not deploy with this version." - exit 0 -fi - -# Ensure the tag matches the one in package.json, otherwise abort. -PACKAGE_TAG=v"$(jq -r .version package.json)" -if [ "$PACKAGE_TAG" != "$TRAVIS_TAG" ]; then - echo "Travis tag (\"$TRAVIS_TAG\") is not equal to package.json tag (\"$PACKAGE_TAG\"). Please push a correct tag and try again." - exit 1 -fi - -# Use regex pattern matching to check if "dev" exists in tag -NPM_TAG="latest" -if [[ $PACKAGE_TAG =~ dev ]]; then - NPM_TAG="dev" -fi - -# Now that checks have been passed, publish the module -npm publish --tag $NPM_TAG From 4c6c2eae0bf10f3dcb46bd2cf4d58953dc8fbd03 Mon Sep 17 00:00:00 2001 From: strophy Date: Tue, 20 Apr 2021 18:35:01 +0200 Subject: [PATCH 2/2] docs: update badges --- README.md | 2 +- docs/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 33fe2da7..bee1172e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Dash SDK [![NPM Version](https://img.shields.io/npm/v/dash)](https://www.npmjs.org/package/dash) -[![Build Status](https://img.shields.io/travis/com/dashevo/js-dash-sdk)](https://travis-ci.com/dashevo/js-dash-sdk) +[![Build Status](https://github.com/dashevo/js-dash-sdk/actions/workflows/test_and_release.yml/badge.svg)](https://github.com/dashevo/js-dash-sdk/actions/workflows/test_and_release.yml) [![Release Date](https://img.shields.io/github/release-date/dashevo/js-dash-sdk)](https://github.com/dashevo/js-dash-sdk/releases/latest) [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen)](https://github.com/RichardLitt/standard-readme) diff --git a/docs/README.md b/docs/README.md index b98be296..730cd2f9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,7 +1,7 @@ # Dash SDK [![NPM Version](https://img.shields.io/npm/v/dash)](https://www.npmjs.org/package/dash) -[![Build Status](https://img.shields.io/travis/com/dashevo/js-dash-sdk)](https://travis-ci.com/dashevo/js-dash-sdk) +[![Build Status](https://github.com/dashevo/js-dash-sdk/actions/workflows/test_and_release.yml/badge.svg)](https://github.com/dashevo/dashcore-lib/actions/workflows/test_and_release.yml) [![Release Date](https://img.shields.io/github/release-date/dashevo/js-dash-sdk)](https://github.com/dashevo/js-dash-sdk/releases/latest) [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen)](https://github.com/RichardLitt/standard-readme)