Skip to content

Shareable Renovate config for Angular & Nx workspaces

License

Notifications You must be signed in to change notification settings

ng-easy/renovate-config

Repository files navigation

@ng-easy/renovate-config

CI semantic-release renovate

Shareable config preset for Renovate. Angular and Nx dependencies require post upgrade tasks, then Renovate must be configured self-hosted, an easy way to do it would be with Github Action Renovate.

You can find an example configuration here and GitHub workflow here.

It includes all presets included in this repo except for Nx and Angular workspaces, they have to be added manually:

"extends": ["github>@ng-easy/renovate-config"]

Groups all non-major npm dependencies, including bump dependencies:

"extends": ["github>@ng-easy/renovate-config:groupAllNonMajor"]

Groups all dependencies related to Angular, including upgrade schematics:

"extends": ["github>@ng-easy/renovate-config:angularWorkspace"]

It is incompatible with preset "github>@ng-easy/renovate-config:nrwlWorkspace", choose one or another

Groups all dependencies related to Nx and Angular, including upgrade schematics:

"extends": ["github>@ng-easy/renovate-config:nrwlWorkspace"]

It is incompatible with preset "github>@ng-easy/renovate-config:angularWorkspace", choose one or another

Groups all dependencies related to linting and formatting:

"extends": ["github>@ng-easy/renovate-config:clientTooling"]

Since this can affect formatting tools such as eslint or prettier, it can potentially affect source files. After upgrading the bot will run format script from npm if present, that could include for example:

prettier . --write
eslint . --fix

Groups all dependencies related to Github actions:

"extends": ["github>@ng-easy/renovate-config:githubActions"]

Adds a ✨ gitmoji ✨ to the commit message:

"extends": ["github>@ng-easy/renovate-config:gitmoji"]

Examples:

  • chore(deps): ⬆️ update dependency
  • fix(deps): 🔒 refresh package-lock.json
  • fix(deps): ⬇️ roll back dependency