Skip to content

Commit 8b0536e

Browse files
committed
chore: setup dependabot auto-updates and set exports
1 parent b5b5963 commit 8b0536e

6 files changed

Lines changed: 1965 additions & 2267 deletions

File tree

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/dependabot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
updates:
3+
# Dependency updates weekly batched by semver
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "wednesday"
9+
time: "00:00" # UTC
10+
open-pull-requests-limit: 10
11+
versioning-strategy: increase
12+
commit-message:
13+
prefix: "chore"
14+
include: "scope"
15+
16+
# GitHub Actions updates monthly
17+
- package-ecosystem: "github-actions"
18+
directory: "/"
19+
schedule:
20+
interval: "monthly"
21+
day: "wednesday"
22+
time: "01:00"
23+
open-pull-requests-limit: 3
24+
25+
commit-message:
26+
prefix: "chore"
27+
include: "scope"

.github/workflows/ci.yaml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@ on:
33
branches:
44
- master
55
pull_request:
6-
types: [assigned, opened, synchronize, reopened, labeled]
6+
branches:
7+
- master
78
workflow_dispatch:
9+
permissions:
10+
contents: read
811
name: ci
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest
1215
strategy:
1316
fail-fast: false
1417
matrix:
15-
node: [18, 20]
18+
node: [22, 24]
1619
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-node@v4
20+
- uses: actions/checkout@v5
21+
- uses: actions/setup-node@v6
1922
with:
2023
node-version: ${{ matrix.node }}
2124
cache: npm
@@ -25,11 +28,29 @@ jobs:
2528
windows:
2629
runs-on: windows-latest
2730
steps:
28-
- uses: actions/checkout@v4
29-
- uses: actions/setup-node@v4
31+
- uses: actions/checkout@v6
32+
- uses: actions/setup-node@v6
3033
with:
3134
node-version: lts/*
3235
cache: npm
3336
- run: npm config set update-notifier false
3437
- run: npm ci
3538
- run: npm test
39+
dependabot-automerge:
40+
needs: [test, windows]
41+
if: >
42+
github.event_name == 'pull_request' &&
43+
github.event.pull_request.user.login == 'dependabot[bot]'
44+
runs-on: ubuntu-latest
45+
permissions:
46+
contents: write
47+
pull-requests: write
48+
steps:
49+
- name: Checkout
50+
uses: actions/checkout@v6
51+
- name: Automerge Dependabot PRs if all checks have passed
52+
shell: bash
53+
env:
54+
GH_TOKEN: ${{ github.token }}
55+
run: |
56+
gh pr merge --squash ${{ github.event.pull_request.number }}

.github/workflows/release-please.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)