fix
This commit is contained in:
+4
-7
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user