Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 54 additions & 35 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,56 @@
version: 2
updates:
- package-ecosystem: "bun"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "05:30"
timezone: "Europe/Athens"
open-pull-requests-limit: 3
versioning-strategy: increase
groups:
all-non-major:
patterns: ["*"]
update-types: ["patch", "minor"]
ignore:
- dependency-name: "vite"
update-types: ["version-update:semver-major"]
- dependency-name: "knip"
update-types: ["version-update:semver-major"]
labels:
- "dependencies"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "05:45"
timezone: "Europe/Athens"
open-pull-requests-limit: 2
groups:
github-actions:
patterns: ["*"]
labels:
- "dependencies"

- package-ecosystem: bun
directory: /
schedule:
interval: weekly
day: sunday
time: 05:30
timezone: Europe/Athens
open-pull-requests-limit: 3
versioning-strategy: increase
groups:
all-non-major:
patterns:
- '*'
update-types:
- patch
- minor
ignore:
- dependency-name: vite
update-types:
- version-update:semver-major
- dependency-name: knip
update-types:
- version-update:semver-major
labels:
- dependencies
rebase-strategy: auto
commit-message:
prefix: chore
include: scope
cooldown:
default-days: 3
semver-minor-days: 7
semver-major-days: 14
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: sunday
time: 05:45
timezone: Europe/Athens
open-pull-requests-limit: 2
groups:
github-actions:
patterns:
- '*'
labels:
- dependencies
rebase-strategy: auto
commit-message:
prefix: chore
include: scope
cooldown:
default-days: 3
semver-minor-days: 7
54 changes: 0 additions & 54 deletions .github/workflows/auto-merge-dependabot.yml

This file was deleted.

46 changes: 13 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

concurrency:
group: >-
Expand All @@ -14,39 +12,21 @@ concurrency:

permissions:
contents: read
pages: write
id-token: write

jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-bun
- run: bun run ci
- uses: actions/upload-artifact@v7
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
with:
name: dist
path: dist
retention-days: 1
uses: dacrab/.github-workflows/.github/workflows/bun-ci.yml@v1
with:
node-version: '22'
check-cmd: 'bun run ci'
test-cmd: ''
build-cmd: 'bun run build'

deploy:
auto-merge:
needs: ci
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
timeout-minutes: 5
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/download-artifact@v8
with:
name: dist
path: dist
- uses: actions/upload-pages-artifact@v5
with:
path: dist
- uses: actions/deploy-pages@v5
id: deployment
permissions:
pull-requests: write
contents: write
uses: dacrab/.github-workflows/.github/workflows/dependabot-auto-merge.yml@v1
with:
target: minor
31 changes: 9 additions & 22 deletions .github/workflows/sync-lockfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,17 @@ name: Sync Lockfile

on:
pull_request:
paths: ["package.json"]
paths: [package.json]

permissions:
contents: write
contents: read

jobs:
sync:
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.state == 'open'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- uses: oven-sh/setup-bun@v2

- run: bun install

- uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chore: sync bun.lock"
file_pattern: bun.lock
commit_user_name: github-actions[bot]
commit_user_email: github-actions[bot]@users.noreply.github.com
permissions:
contents: write
uses: dacrab/.github-workflows/.github/workflows/bun-sync-lockfile.yml@v1
with:
app-client-id: ${{ vars.BOT_APP_CLIENT_ID }}
secrets:
app_private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }}