wat 5 gadus atpakaļ
vecāks
revīzija
0d98e74d19
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      .drone.yml

+ 2
- 2
.drone.yml Parādīt failu

@@ -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
-    - 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:]]')
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 72
     - >- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; 
73 73
       then
74 74
         git tag $PACKAGE_VERSION

Notiek ielāde…
Atcelt
Saglabāt