Browse Source

fix

master
wat 5 years ago
parent
commit
6c2575a287
1 changed files with 4 additions and 7 deletions
  1. 4
    7
      .drone.yml

+ 4
- 7
.drone.yml View File

6
 - name: versioning
6
 - name: versioning
7
   image: node:12
7
   image: node:12
8
   commands:
8
   commands:
9
+  - echo "${PACKAGE_VERSION}"
10
+  - echo "${LATEST_VERSION}"
11
+  - echo ${DRONE_BUILD_CREATED}
9
   - git config --global user.email "frontwork.me@gmail.com";
12
   - git config --global user.email "frontwork.me@gmail.com";
10
   - git config --global user.name "drone";
13
   - git config --global user.name "drone";
11
   - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; 
14
   - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; 
18
       echo $LATEST_VERSION 
21
       echo $LATEST_VERSION 
19
       echo 'did not change. Don`t push tag to master'; 
22
       echo 'did not change. Don`t push tag to master'; 
20
     fi
23
     fi
21
-  - echo "${PACKAGE_VERSION}"
22
-  - echo "${LATEST_VERSION}"
24
+
23
   environment:
25
   environment:
24
     LATEST_VERSION: 
26
     LATEST_VERSION: 
25
       $(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
27
       $(npm view rpclibrary | grep latest | head -1 | awk -F '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
64
   - name: cache
66
   - name: cache
65
     path: /cache
67
     path: /cache
66
 
68
 
67
-- name: show tag
68
-  image: alpine
69
-  commands:
70
-    - echo ${DRONE_BUILD_CREATED}
71
-
72
 - name: npm run test
69
 - name: npm run test
73
   image: node:12
70
   image: node:12
74
   commands:
71
   commands:

Loading…
Cancel
Save