Skip to content

chore(deps-dev): bump nodemon from 2.0.22 to 3.1.7 in /backend #4

chore(deps-dev): bump nodemon from 2.0.22 to 3.1.7 in /backend

chore(deps-dev): bump nodemon from 2.0.22 to 3.1.7 in /backend #4

name: Auto-merge Dependabot PRs
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies and build frontend
run: |
cd frontend
npm ci
npm run build
- name: Install dependencies and check backend
run: |
cd backend
npm ci
- name: Enable auto-merge
if: success()
run: |
gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Notify on success
if: success()
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '✅ PR approved and merged. Docker images will be built and pushed automatically.'
})