From 386c8766a006e3e789c226b6dab41f87d647ed4f Mon Sep 17 00:00:00 2001 From: Dragan Filipovic Date: Sat, 17 Apr 2021 00:28:36 +0200 Subject: [PATCH] CI - split git commands --- .github/workflows/version-bump-publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/version-bump-publish.yml b/.github/workflows/version-bump-publish.yml index 0c2500d..3f49df5 100644 --- a/.github/workflows/version-bump-publish.yml +++ b/.github/workflows/version-bump-publish.yml @@ -1,4 +1,4 @@ -name: Manage version +name: Release on: workflow_dispatch: inputs: @@ -21,10 +21,10 @@ jobs: npm install npm run lint npm run build - - name: Setup version and git tag + - name: Setup version if: ${{ github.event.inputs.tag != '' }} run: | npm version ${{ github.event.inputs.tag }} - git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}" - - name: Push changes - run: git push + git push + - name: Add tag + run: git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}"