瀏覽代碼

fix

master
wat 5 年之前
父節點
當前提交
3bba1f5204
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      .drone.yml

+ 2
- 2
.drone.yml 查看文件

@@ -67,8 +67,6 @@ 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:]]')
72 70
   >- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; 
73 71
     then
74 72
       git tag $PACKAGE_VERSION
@@ -82,6 +80,8 @@ steps:
82 80
   - echo ${PACKAGE_VERSION}
83 81
   - echo ${LATEST_VERSION}
84 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 85
     GIT_USER:
86 86
       from_secret: git_user
87 87
     GIT_PASSWORD:

Loading…
取消
儲存