Skip to content

Commit

Permalink
chore: add dependabot config and automerge
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL committed Mar 22, 2024
1 parent 0c8db16 commit 996ef2f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- dependencies

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- dependencies
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js Active LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Build docs
run: pnpm run docs:build

automerge:
if: github.triggering_actor == 'dependabot[bot]' && github.event_name == 'pull_request'
needs: build
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
target: minor

0 comments on commit 996ef2f

Please sign in to comment.