|
@@ -6,6 +6,8 @@ steps:
|
6
|
6
|
- name: versioning
|
7
|
7
|
image: node:12
|
8
|
8
|
commands:
|
|
9
|
+ - PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
|
10
|
+ - LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
9
|
11
|
- echo "${PACKAGE_VERSION}"
|
10
|
12
|
- echo "${LATEST_VERSION}"
|
11
|
13
|
- echo ${DRONE_BUILD_CREATED}
|
|
@@ -23,10 +25,6 @@ steps:
|
23
|
25
|
fi
|
24
|
26
|
|
25
|
27
|
environment:
|
26
|
|
- LATEST_VERSION:
|
27
|
|
- $(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
28
|
|
- PACKAGE_VERSION:
|
29
|
|
- $(cat package.json | grep version | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
30
|
28
|
GIT_USER:
|
31
|
29
|
from_secret: git_user
|
32
|
30
|
GIT_PASSWORD:
|