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 fd22bd4
Show file tree
Hide file tree
Showing 2 changed files with 62 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
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']

permissions:
contents: read

concurrency:
group: ci

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:
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 fd22bd4

Please sign in to comment.