Skip to content

Bump Patch Version

Bump Patch Version #41

name: Bump Patch Version
on:
workflow_run:
workflows: [Dependabot auto-merge]
types:
- completed
jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install Dependencies
run: npm install
- name: Bump Version
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git fetch origin main
git pull origin main
npm version patch --message "Bump version to %s"
git push