|
@@ -6,6 +6,9 @@ steps:
|
6
|
6
|
- name: versioning
|
7
|
7
|
image: node:12
|
8
|
8
|
commands:
|
|
9
|
+ - echo "${PACKAGE_VERSION}"
|
|
10
|
+ - echo "${LATEST_VERSION}"
|
|
11
|
+ - echo ${DRONE_BUILD_CREATED}
|
9
|
12
|
- git config --global user.email "frontwork.me@gmail.com";
|
10
|
13
|
- git config --global user.name "drone";
|
11
|
14
|
- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
|
|
@@ -18,8 +21,7 @@ steps:
|
18
|
21
|
echo $LATEST_VERSION
|
19
|
22
|
echo 'did not change. Don`t push tag to master';
|
20
|
23
|
fi
|
21
|
|
- - echo "${PACKAGE_VERSION}"
|
22
|
|
- - echo "${LATEST_VERSION}"
|
|
24
|
+
|
23
|
25
|
environment:
|
24
|
26
|
LATEST_VERSION:
|
25
|
27
|
$(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
|
@@ -64,11 +66,6 @@ steps:
|
64
|
66
|
- name: cache
|
65
|
67
|
path: /cache
|
66
|
68
|
|
67
|
|
-- name: show tag
|
68
|
|
- image: alpine
|
69
|
|
- commands:
|
70
|
|
- - echo ${DRONE_BUILD_CREATED}
|
71
|
|
-
|
72
|
69
|
- name: npm run test
|
73
|
70
|
image: node:12
|
74
|
71
|
commands:
|