Skip to content

Commit

Permalink
ci: add package.json and version.json rules to renovate.json5, and gr…
Browse files Browse the repository at this point in the history
…oup Github Actions dependencies together (#69)
  • Loading branch information
gmeligio authored Mar 8, 2024
1 parent c6c4818 commit 08c7251
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions renovate.json5

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/patch/JsiiProjectPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,20 @@ export class JsiiProjectPatch extends JsiiProject {

renovate?.addToArray(
'packageRules',
// Pin digests for dependencies in version.json
{
enabled: true,
matchFileNames: ['version.json'],
pinDigests: true,
},
// Group Github Actions dependencies together
{
groupName: 'github-actions',
matchDatasources: ['github-tags'],
},
// Ignore the packageManager field in package.json, because it's being upgraded in version.json
{
matchFileNames: ['package.json'],
matchDatasources: ['npm'],
matchDepTypes: ['packageManager'],
enabled: false,
Expand Down

0 comments on commit 08c7251

Please sign in to comment.