Skip to content

Commit

Permalink
feat(internal): pin @bfra-me digests to semver
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown committed Aug 14, 2024
1 parent 240cb04 commit 10fdb15
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
${{ !contains('["issues", "pull_request"]', github.event_name) && github.ref_name == 'main' || contains(github.ref_name, 'renovate/') }}
dry_run: ${{ github.event_name == 'push' && github.ref_name != 'main' }}
if: github.event_name != 'push' || steps.filter.outputs.changes == 'true'
uses: bfra-me/renovate-action@ef37417bd2dc94514c823f1374298b1f7f7209d4 # v4.3.2
uses: bfra-me/renovate-action@v4
with:
branch: ${{ env.dry_run == 'true' && github.ref_name || '' }}
cache: ${{ env.cache }}
Expand Down
17 changes: 13 additions & 4 deletions internal.json5
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,23 @@
description: 'Group @types/* dependencies together with the npm dependency they are for.',
matchDatasources: ['npm'],
matchDepTypes: ['dependencies', 'devDependencies'],
matchPackagePrefixes: ['@types/'],
matchPackageNames: ['@types/**'],
groupName: "{{{replace '@types/' '' depName}}}",
},
{
description: 'Add support for @bfra-me Renovate config presets.',
matchDepNames: ['bfra-me/renovate-config'],
commitMessageTopic: '{{depName}} preset',
},
{
description: 'Pin digests of @bfra-me GitHub actions, reusable workflows, and Renovate config presets to SemVer versions.',
matchDatasources: ['github-tags'],
matchPackageNames: ['@bfra.me/**', 'bfra-me/**'],
extractVersion: '^(?<version>v\\d+\\.\\d+\\.\\d+)$',
pinDigests: true,
rangeStrategy: 'replace',
versioning: 'regex:^v?(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$',
},
{
description: 'Exclude broken versions of the `bfra-me/renovate-config` preset.',
matchDepNames: ['bfra-me/renovate-config'],
Expand All @@ -172,13 +181,13 @@
},
{
description: ['Disable patch updates except for @bfra-me packages.'],
excludePackagePrefixes: ['@bfra.me/', 'bfra-me/'],
excludePackageNames: ['@bfra.me/**', 'bfra-me/**'],
matchUpdateTypes: ['patch'],
enabled: false,
},
{
description: 'Automerge `minor` and `patch` update types of @bfra-me packages.',
matchPackagePrefixes: ['@bfra.me/', 'bfra-me/'],
matchPackageNames: ['@bfra.me/**', 'bfra-me/**'],
matchUpdateTypes: ['minor', 'patch'],
addLabels: ['automerge'],
automerge: true,
Expand All @@ -187,7 +196,7 @@
},
{
description: 'Remove minimum release age config for bfra.me packages.',
matchPackagePrefixes: ['@bfra.me/', 'bfra-me/'],
matchPackageNames: ['@bfra.me/**', 'bfra-me/**'],
minimumReleaseAge: null,
prNotPendingHours: 0,
},
Expand Down

0 comments on commit 10fdb15

Please sign in to comment.