CI - split git commands

This commit is contained in:
Dragan Filipovic 2021-04-17 00:28:36 +02:00
parent 130901534a
commit 386c8766a0

View File

@ -1,4 +1,4 @@
name: Manage version name: Release
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
@ -21,10 +21,10 @@ jobs:
npm install npm install
npm run lint npm run lint
npm run build npm run build
- name: Setup version and git tag - name: Setup version
if: ${{ github.event.inputs.tag != '' }} if: ${{ github.event.inputs.tag != '' }}
run: | run: |
npm version ${{ github.event.inputs.tag }} npm version ${{ github.event.inputs.tag }}
git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}" git push
- name: Push changes - name: Add tag
run: git push run: git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}"