Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
treeder authored May 10, 2023
1 parent bdc656e commit c011d24
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,28 @@ jobs:
wget -O - https://raw.githubusercontent.com/treeder/bump/master/gitbump.sh | bash
```
## GitHub Action to bump npm version AND git version 🤯
```yaml
name: Bump version

on:
push:
branches:
- main
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Bump version npm style
run: |
git config --global user.email "[email protected]"
git config --global user.name "Actions"
npm version patch
git push --follow-tags
```
If you get this error:
```
Expand Down

0 comments on commit c011d24

Please sign in to comment.