Create versionIncrement.yml

This commit is contained in:
2023-06-12 02:21:44 +10:00
committed by GitHub
parent 4448ca0615
commit ac68b12a00

19
.github/workflows/versionIncrement.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Version Increment
on:
push:
branches:
- main
jobs:
version:
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, '[RELEASE]')"
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: git config --global user.name 'Litruv'
- run: git config --global user.email 'litruv@gmail.com'
- run: npm version patch -m "[RELEASE] %s"
- run: git push