diff --git a/.drone.yml b/.drone.yml index 33be91d..7a09a5d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -70,16 +70,16 @@ steps: - 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}" ]; - then - git tag $PACKAGE_VERSION - git status - git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; - else - echo 'Version: ' - echo $LATEST_VERSION - echo 'did not change. Don`t push tag to master'; - fi + - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; + then + git tag $PACKAGE_VERSION + git status + git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; + else + echo 'Version: ' + echo $LATEST_VERSION + echo 'did not change. Don`t push tag to master'; + fi - echo 'Package Version: '; echo ${PACKAGE_VERSION} - echo 'Latest Version: '; echo ${LATEST_VERSION}