Browse Source

fix

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

+ 2
- 4
.drone.yml View File

6
 - name: versioning
6
 - name: versioning
7
   image: node:12
7
   image: node:12
8
   commands:
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
   - echo "${PACKAGE_VERSION}"
11
   - echo "${PACKAGE_VERSION}"
10
   - echo "${LATEST_VERSION}"
12
   - echo "${LATEST_VERSION}"
11
   - echo ${DRONE_BUILD_CREATED}
13
   - echo ${DRONE_BUILD_CREATED}
23
     fi
25
     fi
24
 
26
 
25
   environment:
27
   environment:
26
-    LATEST_VERSION: 
27
-      $(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
28
-    PACKAGE_VERSION:
29
-      $(cat package.json | grep version | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
30
     GIT_USER:
28
     GIT_USER:
31
       from_secret: git_user
29
       from_secret: git_user
32
     GIT_PASSWORD:
30
     GIT_PASSWORD:

Loading…
Cancel
Save