Skip to content

Commit

Permalink
feature: add dependabot and npm workspaces (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudNStoyan authored Nov 18, 2024
1 parent 5867104 commit 1fdf24e
Show file tree
Hide file tree
Showing 9 changed files with 2,089 additions and 11,968 deletions.
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: 'npm'
labels: ['dependencies', 'autoupdate']
directory: '/'
schedule:
interval: 'weekly'
versioning-strategy: increase
groups:
production-dependencies:
applies-to: version-updates
dependency-type: 'production'
update-types:
- 'minor'
- 'patch'
development-dependencies:
applies-to: version-updates
dependency-type: 'development'
update-types:
- 'minor'
- 'patch'
ignore:
- dependency-name: '*'
update-types: ['version-update:semver-major']
16 changes: 16 additions & 0 deletions .github/workflows/dependabot-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: dependabot-ci
on: pull_request

jobs:
dependabot-tests:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build --workspaces --if-present
- run: npm test --if-present # run the monorepo root tests
- run: npm test --workspaces --if-present # run the individual packages tests
Loading

0 comments on commit 1fdf24e

Please sign in to comment.