Skip to content

Commit

Permalink
feat(ci): add dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
gmickel committed Jul 7, 2024
1 parent 6ffd5f7 commit b45b83c
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 0 deletions.
107 changes: 107 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
version: 2
updates:
# Root package.json
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-type: "all"
open-pull-requests-limit: 10
versioning-strategy: "auto"
commit-message:
prefix: "chore"
include: "scope"
labels:
- "dependencies"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]

# /apps/web
- package-ecosystem: "npm"
directory: "/apps/web"
schedule:
interval: "daily"
allow:
- dependency-type: "all"
open-pull-requests-limit: 10
versioning-strategy: "auto"
commit-message:
prefix: "chore"
include: "scope"
labels:
- "dependencies"
- "web"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]

# /apps/docs
- package-ecosystem: "npm"
directory: "/apps/docs"
schedule:
interval: "daily"
allow:
- dependency-type: "all"
open-pull-requests-limit: 10
versioning-strategy: "auto"
commit-message:
prefix: "chore"
include: "scope"
labels:
- "dependencies"
- "docs"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]

# /packages/ui
- package-ecosystem: "npm"
directory: "/packages/ui"
schedule:
interval: "daily"
allow:
- dependency-type: "all"
open-pull-requests-limit: 10
versioning-strategy: "auto"
commit-message:
prefix: "chore"
include: "scope"
labels:
- "dependencies"
- "ui"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]

# /packages/utils
- package-ecosystem: "npm"
directory: "/packages/utils"
schedule:
interval: "daily"
allow:
- dependency-type: "all"
open-pull-requests-limit: 10
versioning-strategy: "auto"
commit-message:
prefix: "chore"
include: "scope"
labels:
- "dependencies"
- "utils"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]

# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore"
include: "scope"
labels:
- "dependencies"
- "github-actions"
15 changes: 15 additions & 0 deletions .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Auto-merge Dependabot PRs

on: pull_request

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

0 comments on commit b45b83c

Please sign in to comment.