From 38735a02bc07b352aebf1cc7f4bd1bf412286c5e Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Fri, 27 Jan 2023 15:17:06 +0100 Subject: [PATCH] ci: :construction_worker: add git push to CI after standard-version --- .drone.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7f79121..b409676 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,11 +3,18 @@ type: kubernetes name: default steps: -- name: standard-version - image: node:19 - commands: - - git config --global user.email "moravrav@gmail.com" - - git config --global user.name "RaviAnand Mohabir" - - git config --global url."https://$GIT_USERNAME:$GIT_TOKEN@gitea.ravianand.me/".insteadOf "https://gitea.ravianand.me/" - - npm i -g standard-version - - standard-version + - name: standard-version + image: node:19 + commands: + - git config --global user.email "moravrav@gmail.com" + - git config --global user.name "RaviAnand Mohabir" + - git config --global url."https://$GIT_USERNAME:$GIT_TOKEN@gitea.ravianand.me/".insteadOf "https://gitea.ravianand.me/" + - npm i -g standard-version + - 'standard-version --releaseCommitMessageFormat "chore(release): {{currentTag}} [CI SKIP]"' + - git push --follow-tags origin + +trigger: + branch: + - main + event: + - push