Bladeren bron

fix

master
wat 5 jaren geleden
bovenliggende
commit
e94bb9ba92
1 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 4
    4
      .drone.yml

+ 4
- 4
.drone.yml Bestand weergeven

@@ -67,8 +67,8 @@ steps:
67 67
   commands:
68 68
   - git config --global user.email "frontwork.me@gmail.com"
69 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:]]')
70
+  - PACKAGE_VERSION $(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
71
+  - LATEST_VERSION $(npm view rpclibrary | grep latest | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
72 72
   - >- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; 
73 73
     then
74 74
       git tag $PACKAGE_VERSION
@@ -79,8 +79,8 @@ steps:
79 79
       echo $LATEST_VERSION 
80 80
       echo 'did not change. Don`t push tag to master'; 
81 81
   fi
82
-  - echo 'Package Version: '; echo ${PACKAGE_VERSION}
83
-  - echo 'Latest Version: '; echo ${LATEST_VERSION}
82
+  - echo echo ${PACKAGE_VERSION}
83
+  - echo echo ${LATEST_VERSION}
84 84
   environment:
85 85
     GIT_USER:
86 86
       from_secret: git_user

Laden…
Annuleren
Opslaan