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