This commit is contained in:
wat
2019-09-22 13:35:43 +02:00
parent ae0e0ae889
commit 6c2575a287
+4 -7
View File
@@ -6,6 +6,9 @@ steps:
- name: versioning
image: node:12
commands:
- echo "${PACKAGE_VERSION}"
- echo "${LATEST_VERSION}"
- echo ${DRONE_BUILD_CREATED}
- git config --global user.email "frontwork.me@gmail.com";
- git config --global user.name "drone";
- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
@@ -18,8 +21,7 @@ steps:
echo $LATEST_VERSION
echo 'did not change. Don`t push tag to master';
fi
- 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:]]')
@@ -64,11 +66,6 @@ steps:
- name: cache
path: /cache
- name: show tag
image: alpine
commands:
- echo ${DRONE_BUILD_CREATED}
- name: npm run test
image: node:12
commands: