Skip to content

Commit 996ef2f

Browse files
committed
chore: add dependabot config and automerge
1 parent 0c8db16 commit 996ef2f

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
labels:
9+
- dependencies
10+
11+
- package-ecosystem: 'github-actions'
12+
directory: '/'
13+
schedule:
14+
interval: daily
15+
open-pull-requests-limit: 10
16+
labels:
17+
- dependencies

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: ['main']
5+
pull_request:
6+
branches: ['main']
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v3
20+
with:
21+
version: 8
22+
- name: Use Node.js Active LTS
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: lts/*
26+
cache: 'pnpm'
27+
- name: Install dependencies
28+
run: pnpm i
29+
- name: Build docs
30+
run: pnpm run docs:build
31+
32+
automerge:
33+
if: github.triggering_actor == 'dependabot[bot]' && github.event_name == 'pull_request'
34+
needs: build
35+
runs-on: ubuntu-latest
36+
permissions:
37+
pull-requests: write
38+
contents: write
39+
steps:
40+
- uses: fastify/github-action-merge-dependabot@v3
41+
with:
42+
github-token: ${{ secrets.GITHUB_TOKEN }}
43+
target: minor

0 commit comments

Comments
 (0)