Skip to content

Commit c5570d9

Browse files
committed
feat: impl gh workflows and dependabot
1 parent 885cfe8 commit c5570d9

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: 'github-actions'
5+
directory: '/'
6+
schedule:
7+
interval: 'weekly'
8+
- package-ecosystem: npm
9+
directory: '/'
10+
schedule:
11+
interval: 'weekly'
12+
open-pull-requests-limit: 10
13+
versioning-strategy: increase-if-necessary
14+
reviewers:
15+
- 'andostronaut'
16+
assignees:
17+
- 'andostronaut'
18+
labels:
19+
- 'dependencies'
20+
- 'pnpm'

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
node-version:
12+
- 20
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: pnpm/action-setup@v4
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
cache: 'pnpm'
20+
- run: pnpm install
21+
- run: pnpm run lint

.github/workflows/pr.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: pull-request
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
jobs:
9+
create-pull-request:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: jascodes/pr-branch-action@1.0.3
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
16+
PULL_REQUEST_BRANCH: main
17+
PULL_REQUEST_TITLE: ${{ github.event.head_commit.message }}

0 commit comments

Comments
 (0)