fix
This commit is contained in:
+4
-7
@@ -6,6 +6,9 @@ steps:
|
|||||||
- name: versioning
|
- name: versioning
|
||||||
image: node:12
|
image: node:12
|
||||||
commands:
|
commands:
|
||||||
|
- echo "${PACKAGE_VERSION}"
|
||||||
|
- echo "${LATEST_VERSION}"
|
||||||
|
- echo ${DRONE_BUILD_CREATED}
|
||||||
- git config --global user.email "frontwork.me@gmail.com";
|
- git config --global user.email "frontwork.me@gmail.com";
|
||||||
- git config --global user.name "drone";
|
- git config --global user.name "drone";
|
||||||
- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
|
- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
|
||||||
@@ -18,8 +21,7 @@ steps:
|
|||||||
echo $LATEST_VERSION
|
echo $LATEST_VERSION
|
||||||
echo 'did not change. Don`t push tag to master';
|
echo 'did not change. Don`t push tag to master';
|
||||||
fi
|
fi
|
||||||
- echo "${PACKAGE_VERSION}"
|
|
||||||
- echo "${LATEST_VERSION}"
|
|
||||||
environment:
|
environment:
|
||||||
LATEST_VERSION:
|
LATEST_VERSION:
|
||||||
$(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
$(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
||||||
@@ -64,11 +66,6 @@ steps:
|
|||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /cache
|
||||||
|
|
||||||
- name: show tag
|
|
||||||
image: alpine
|
|
||||||
commands:
|
|
||||||
- echo ${DRONE_BUILD_CREATED}
|
|
||||||
|
|
||||||
- name: npm run test
|
- name: npm run test
|
||||||
image: node:12
|
image: node:12
|
||||||
commands:
|
commands:
|
||||||
|
|||||||
Reference in New Issue
Block a user