Browse Source

fix

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

+ 2
- 2
.drone.yml View File

67
   commands:
67
   commands:
68
   - git config --global user.email "frontwork.me@gmail.com"
68
   - git config --global user.email "frontwork.me@gmail.com"
69
   - git config --global user.name "drone"
69
   - git config --global user.name "drone"
70
-  - export PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
71
-  - export LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
72
   >- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; 
70
   >- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; 
73
     then
71
     then
74
       git tag $PACKAGE_VERSION
72
       git tag $PACKAGE_VERSION
82
   - echo ${PACKAGE_VERSION}
80
   - echo ${PACKAGE_VERSION}
83
   - echo ${LATEST_VERSION}
81
   - echo ${LATEST_VERSION}
84
   environment:
82
   environment:
83
+    LATEST_VERSION=$(npm view rpclibrary | grep latest | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
84
+    PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
85
     GIT_USER:
85
     GIT_USER:
86
       from_secret: git_user
86
       from_secret: git_user
87
     GIT_PASSWORD:
87
     GIT_PASSWORD:

Loading…
Cancel
Save