From 4e28c5c3275f6f703a6923d23d001bfb676331a6 Mon Sep 17 00:00:00 2001 From: Rodrigo Fernandes Date: Wed, 5 Feb 2020 21:27:25 +0000 Subject: [PATCH] fix: Git tag push --- .circleci/config.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0fa1f20..c1b0994 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -109,6 +109,24 @@ jobs: docker: - image: node:13 + tag_version: + docker: + - image: node:13 + working_directory: ~/workdir + steps: + - attach_workspace: + at: ~/workdir + - run: + name: Configure Git + command: | + git config user.email "circleci@users.noreply.github.com" + git config user.name "CircleCI" + - run: + name: Tag version + command: | + git tag "$(cat .version)" + git push --tags "https://rtfpessoa:$GPR_AUTH_TOKEN@github.com/rtfpessoa/diff2html" + publish_library: docker: - image: node:13 @@ -131,7 +149,6 @@ jobs: command: | # Update version in packages to publish yarn version --non-interactive --new-version $(cat .version) - git push --tags "https://rtfpessoa:$GPR_AUTH_TOKEN@github.com/rtfpessoa/diff2html" - run: name: Setup npm credentials command: | @@ -202,12 +219,15 @@ workflows: - build-node-11 - build-node-12 - build-node-13 + - tag_version: + requires: + - publish_approval - publish_library: requires: - - publish_approval + - tag_version - publish_website: requires: - - publish_approval + - tag_version filters: branches: only: