Skip to content

Commit

Permalink
Update npm-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BilelJegham authored Jun 17, 2021
1 parent 6ec4e6b commit c622a27
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/npm-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,27 @@ 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
- uses: actions/setup-node@v2
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

0 comments on commit c622a27

Please sign in to comment.