From c622a271f63cbbcbd2cd4e59f15c713a61fd302f Mon Sep 17 00:00:00 2001 From: Bilel Jegham Date: Thu, 17 Jun 2021 20:01:20 +0200 Subject: [PATCH] Update npm-version.yml --- .github/workflows/npm-version.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-version.yml b/.github/workflows/npm-version.yml index b752000..5860578 100644 --- a/.github/workflows/npm-version.yml +++ b/.github/workflows/npm-version.yml @@ -6,11 +6,18 @@ on: type: description: 'Version type' required: true - default: 'minor' - + default: 'patch' + name: + description: 'name' + required: true + default: 'BilelJegham' + email: + description: 'Version type' + required: true + default: '@gmail.com' jobs: - build: + push-version: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -18,6 +25,8 @@ jobs: with: node-version: 12 - run: | + git config --global user.email "${{ github.event.inputs.email }}" + git config --global user.name "${{ github.event.inputs.name }}" npm version ${{ github.event.inputs.type }} git push --follow-tags