From deb9f863be823a57c10855b73330a75fbab411b0 Mon Sep 17 00:00:00 2001 From: Hchs Date: Sun, 27 May 2018 19:11:41 +0800 Subject: [PATCH] fix(drone): use bash to trigger standard-version --- .drone.yml | 11 +++++++---- package.json | 3 ++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1fb1a3b..39623ab 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,12 +42,16 @@ pipeline: - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts - echo -n "$SSH_KEY" > ~/.ssh/id_rsa && chmod 0600 ~/.ssh/id_rsa - cd $DRONE_WORKSPACE/src - - standard-version + - git config --global user.email "drone@hchs-service.tk" + - git config --global user.name "drone" + - git remote set-url origin git@github.com:g9308370/cococharge.git + - git remote -v + - standard-version -m "chore(release) %s [SKIP CI]" - git push --follow-tags origin ${DRONE_COMMIT_BRANCH} when: branch: [ master ] - publish_dockerhub: + publish-dockerhub: image: plugins/docker repo: hchstera/cococharge dockerfile: ./src/Dockerfile @@ -60,7 +64,6 @@ pipeline: event: [ push ] branch: [ master ] - deploy: image: appleboy/drone-ssh host: 209.97.168.149 @@ -84,7 +87,7 @@ pipeline: ## notifications - notify_line: + notify-line: image: appleboy/drone-line secrets: [ plugin_channel_secret, plugin_channel_token, plugin_to_group ] when: diff --git a/package.json b/package.json index e81ab87..0ad8809 100644 --- a/package.json +++ b/package.json @@ -18,5 +18,6 @@ "laravel-mix": "^2.0", "lodash": "^4.17.4", "vue": "^2.5.7" - } + }, + "version": "0.0.0" }