This commit is contained in:
wat
2019-09-22 13:36:40 +02:00
parent 6c2575a287
commit fc269a08f9
+2 -4
View File
@@ -6,6 +6,8 @@ steps:
- name: versioning - name: versioning
image: node:12 image: node:12
commands: commands:
- PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
- LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
- echo "${PACKAGE_VERSION}" - echo "${PACKAGE_VERSION}"
- echo "${LATEST_VERSION}" - echo "${LATEST_VERSION}"
- echo ${DRONE_BUILD_CREATED} - echo ${DRONE_BUILD_CREATED}
@@ -23,10 +25,6 @@ steps:
fi fi
environment: environment:
LATEST_VERSION:
$(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
PACKAGE_VERSION:
$(cat package.json | grep version | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
GIT_USER: GIT_USER:
from_secret: git_user from_secret: git_user
GIT_PASSWORD: GIT_PASSWORD: