This commit is contained in:
wat
2019-09-22 13:25:02 +02:00
parent 1d3e47a19d
commit 3bba1f5204
+2 -2
View File
@@ -67,8 +67,6 @@ steps:
commands:
- git config --global user.email "frontwork.me@gmail.com"
- git config --global user.name "drone"
- export PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
- export LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
>- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
then
git tag $PACKAGE_VERSION
@@ -82,6 +80,8 @@ steps:
- echo ${PACKAGE_VERSION}
- echo ${LATEST_VERSION}
environment:
LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
GIT_USER:
from_secret: git_user
GIT_PASSWORD: