Skip to content

Describe evergreen Update using tools like renovate #46118

@d-koppenhagen

Description

@d-koppenhagen

Description

Often companies want to be able to have an evergreen environment with up-to-date dependencies to be able to fix issues and vulnerability ideally automatically by running update autonomous or at least providing automatic pull requests for such updates.

One very common tool for such update is renovate.

To help users setting up such tools, the angular docs should describe the steps needed/the commands to be executed to target such goal.

have a look at the related renovate issue/PR:

renovatebot/renovate#4256
renovatebot/renovate#7632

General steps:

  • update and bundle all angular-related dependencies in the package.json/ lockfile
  • install the dependencies
  • execute migrations afterwards

Example using renovate:

{
  "postUpgradeTasks": {
    "commands": [
      "npm ci --ignore-scripts",
      "npx ng update {{{depName}}} --from={{{fromVersion}}} --to={{{toVersion}}} --migrateOnly --allowDirty --force"
    ],
    "fileFilters": ["**/**"]
  }
}

What is the affected URL?

https://angular.io/cli/update

Please provide the steps to reproduce the issue

No response

Please provide the expected behavior vs the actual behavior you encountered

Evergreen updates execution process using automation tools is described

Please provide a screenshot if possible

No response

Please provide the exception or error you saw

No response

Is this a browser-specific issue? If so, please specify the device, browser, and version.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: docsRelated to the documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions