Skip to content

Commit

Permalink
Add auto-merge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
deptyped committed Aug 30, 2023
1 parent 10e8f58 commit 5534bda
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ on:
jobs:
build-and-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -22,4 +20,16 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm run typecheck

auto-merge:
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
needs: build-and-test
steps:
- uses: actions/checkout@v3
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
command: squash and merge
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5534bda

Please sign in to comment.