Enhance GitHub Actions workflows and Dependabot configuration

- Added new Dependabot configurations for npm packages in the /api and /web directories, scheduled for weekly updates with a limit of 10 open pull requests.
- Updated the GitHub Actions workflows for both main and staging deployments to trigger on changes within the api directory, specifically for migrations, improving deployment reliability.

These changes streamline dependency management and enhance the deployment process for the application.
This commit is contained in:
dal 2025-01-06 12:10:42 -07:00
parent 5f2c72fbf6
commit f7bb098ba9
3 changed files with 29 additions and 6 deletions

View File

@ -25,3 +25,26 @@ updates:
commit-message: commit-message:
prefix: "chore" prefix: "chore"
include: "scope" include: "scope"
- package-ecosystem: "npm"
directory: "/api"
schedule:
interval: "weekly"
source-branch: "main"
target-branch: "staging"
open-pull-requests-limit: 10
labels:
- "dependencies"
- package-ecosystem: "npm"
directory: "/web"
schedule:
interval: "weekly"
source-branch: "main"
target-branch: "staging"
open-pull-requests-limit: 10
labels:
- "dependencies"
commit-message:
prefix: "chore"
include: "scope"

View File

@ -2,13 +2,13 @@
push: push:
branches: branches:
- main - main
pull_request: paths:
branches: - api/**
- main
name: Deploy to main name: Deploy to main
jobs: jobs:
database-deploy: database-deploy:
runs-on: blacksmith-16vcpu-ubuntu-2204 runs-on: blacksmith-16vcpu-ubuntu-2204
if: contains(github.event.head_commit.modified_files, 'api/migrations/') || contains(github.event.head_commit.added_files, 'api/migrations/')
environment: main environment: main
steps: steps:
- name: Checkout code - name: Checkout code

View File

@ -2,13 +2,13 @@
push: push:
branches: branches:
- staging - staging
pull_request: paths:
branches: - api/**
- staging
name: Deploy to staging name: Deploy to staging
jobs: jobs:
database-deploy: database-deploy:
runs-on: blacksmith-16vcpu-ubuntu-2204 runs-on: blacksmith-16vcpu-ubuntu-2204
if: contains(github.event.head_commit.modified_files, 'api/migrations/') || contains(github.event.head_commit.added_files, 'api/migrations/')
environment: staging environment: staging
steps: steps:
- name: Checkout code - name: Checkout code