This commit is contained in:
wat
2019-09-22 13:46:33 +02:00
parent 4eab56ae34
commit ea91e9c2be
+2 -2
View File
@@ -6,8 +6,8 @@ steps:
- name: versioning
image: node:12
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:]]')
- export PACKAGE_VERSION=$(cat ./package.json | grep version | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
- export LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
- echo $PACKAGE_VERSION
- echo $LATEST_VERSION
- echo $DRONE_BUILD_CREATED