|
@@ -6,8 +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
|
+ - export PACKAGE_VERSION=$(cat ./package.json | grep version | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
|
10
|
+ - export LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
11
|
11
|
- echo $PACKAGE_VERSION
|
12
|
12
|
- echo $LATEST_VERSION
|
13
|
13
|
- echo $DRONE_BUILD_CREATED
|