|
@@ -70,16 +70,16 @@ steps:
|
70
|
70
|
|
71
|
71
|
- PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
72
|
72
|
- LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
73
|
|
- - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
|
74
|
|
- then
|
75
|
|
- git tag $PACKAGE_VERSION
|
76
|
|
- git status
|
77
|
|
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION;
|
78
|
|
- else
|
79
|
|
- echo 'Version: '
|
80
|
|
- echo $LATEST_VERSION
|
81
|
|
- echo 'did not change. Don`t push tag to master';
|
82
|
|
- fi
|
|
73
|
+ - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
|
|
74
|
+ then
|
|
75
|
+ git tag $PACKAGE_VERSION
|
|
76
|
+ git status
|
|
77
|
+ git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION;
|
|
78
|
+ else
|
|
79
|
+ echo 'Version: '
|
|
80
|
+ echo $LATEST_VERSION
|
|
81
|
+ echo 'did not change. Don`t push tag to master';
|
|
82
|
+ fi
|
83
|
83
|
- echo 'Package Version: '; echo ${PACKAGE_VERSION}
|
84
|
84
|
- echo 'Latest Version: '; echo ${LATEST_VERSION}
|
85
|
85
|
|