Skip to content

Commit 2bd1ed4

Browse files
authored
Merge pull request #180 from kinotio/develop
feat: init gh workflows and dependabot config
2 parents 00a4cfb + 8d74465 commit 2bd1ed4

5 files changed

Lines changed: 96 additions & 0 deletions

File tree

.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.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- uses: pnpm/action-setup@v4
18+
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: "pnpm"
23+
24+
- run: pnpm install
25+
- run: pnpm run lint

.github/workflows/pull-request.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 }}

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
push_to_registries:
9+
name: Push Docker image
10+
runs-on: ubuntu-latest
11+
permissions:
12+
packages: write
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: docker/login-action@v3
18+
with:
19+
registry: ghcr.io
20+
username: ${{ github.actor }}
21+
password: ${{ secrets.GITHUB_TOKEN }}
22+
23+
- uses: docker/metadata-action@v5
24+
id: meta
25+
with:
26+
images: ghcr.io/${{ github.repository }}
27+
28+
- uses: docker/build-push-action@v5
29+
with:
30+
context: .
31+
push: true
32+
tags: ${{ steps.meta.outputs.tags }}
33+
labels: ${{ steps.meta.outputs.labels }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "drowser-studio",
33
"version": "0.1.0",
44
"private": true,
5+
"packageManager": "pnpm@9.7.0",
56
"scripts": {
67
"dev": "next dev",
78
"build": "next build",

0 commit comments

Comments
 (0)