maybe fix

This commit is contained in:
Daniel Hübleitner
2019-09-22 12:35:44 +02:00
parent 42df9de84b
commit 21570ca964
+2 -2
View File
@@ -67,8 +67,8 @@ steps:
commands: commands:
- git config --global user.email "frontwork.me@gmail.com" - git config --global user.email "frontwork.me@gmail.com"
- git config --global user.name "drone" - 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:]]') - export 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:]]') - 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}" ]; - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
then then
git tag $PACKAGE_VERSION git tag $PACKAGE_VERSION