Skip to content

Commit

Permalink
fix(infra): Bypass Prerelease Versions from Renovate PRs (#211)
Browse files Browse the repository at this point in the history
* fix(infra): Do not include pulling of prerelease packages [bugfix]

* chore(infra): Update snapshot UT to reflect renovate change [bugfix]

* chore(infra): Comment for clarify [bugfix]

* chore(infra): Include renovate.json5 update [bugfix]

* chore(infra): Also include optional 4th set of numerals [bugfix]
  • Loading branch information
Justinon authored Sep 11, 2023
1 parent 34963a8 commit 576567f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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/renovate-workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ export module renovateWorkflow {
automerge: options.autoMergeNonBreakingUpdates ? true : undefined,
// Adding the auto-approve label will make projens auto approve workflow approve the PR so it will be auto merged
addLabels: [options.autoMergeNonBreakingUpdates ? AUTO_APPROVE_PR_LABEL : undefined],
// Bypass prerelease versions:
// https://docs.renovatebot.com/configuration-options/#allowedversions
// Ex: 1.1.1 is allowed, 1.1.1-beta.0 is not allowed.
allowedVersions: '!/^[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?-(alpha|beta).*$/',
},
{
matchDepTypes: ['optionalDependencies'],
Expand Down
1 change: 1 addition & 0 deletions test/__snapshots__/renovate-workflow.test.ts.snap

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

0 comments on commit 576567f

Please sign in to comment.