From 07a839d5a2815285f7ea7da769a42be3f038581d Mon Sep 17 00:00:00 2001 From: wat Date: Sun, 22 Sep 2019 13:03:45 +0200 Subject: [PATCH] fix --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d8ece64..60ce671 100644 --- a/.drone.yml +++ b/.drone.yml @@ -69,7 +69,7 @@ steps: - git config --global user.name "drone" - PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') - LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') - - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; + - >- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; then git tag $PACKAGE_VERSION git status