This commit is contained in:
wat
2019-09-22 13:03:45 +02:00
parent d963f9e43f
commit 07a839d5a2
+1 -1
View File
@@ -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