Skip to content

Commit 41eaca0

Browse files
Merge pull request #19 from github-samples/npm-dependabot-config
Add NPM dependabot config
2 parents 6c9a67c + cb8a742 commit 41eaca0

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

.github/dependabot.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for more information:
4-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5-
# https://containers.dev/guide/dependabot
1+
# This is the dependabot configuration file that automates dependency updates
2+
# Updates section configures how dependabot should handle dependency updates:
3+
# - Monitors devcontainer features in the root directory (though convention is .devcontainer and it should check there by default)
4+
# - Monitors NPM dependencies in the possible-solutions directory
5+
# - Checks for updates weekly
6+
# - Groups updates based on their type (dev grouped by minor/patch or prod grouped by patch)
7+
#
8+
# Learn more at https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#configuration-options-for-the-dependabotyml-file
69

710
version: 2
811
updates:
9-
- package-ecosystem: "devcontainers"
10-
directory: "/"
11-
schedule:
12-
interval: weekly
12+
- package-ecosystem: "devcontainers"
13+
directory: "/"
14+
schedule:
15+
interval: weekly
16+
- package-ecosystem: npm
17+
directory: /possible-solutions/
18+
schedule:
19+
interval: weekly
20+
groups:
21+
npm-development:
22+
dependency-type: development
23+
update-types:
24+
- minor
25+
- patch
26+
npm-production:
27+
dependency-type: production
28+
update-types:
29+
- patch

0 commit comments

Comments
 (0)