|
@@ -6,11 +6,11 @@ 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
|
|
- - echo ${DRONE_BUILD_CREATED}
|
|
13
|
+ - echo "${DRONE_BUILD_CREATED}"
|
14
|
14
|
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
15
|
15
|
- git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
16
|
16
|
- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
|