Browse Source

fix

master
wat 5 years ago
parent
commit
ea91e9c2be
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      .drone.yml

+ 2
- 2
.drone.yml View File

@@ -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

Loading…
Cancel
Save