Autoupdate package.json version with Dependabot

903 Views Asked by At

So when Dependabot runs and create a PR with a library update it's updates the library version in the package.json and package-lock.json, but is there any config that I could be missing, that in every PR of the dependabot update the package.json version too, for example:

  {
  "name": "my-projetc",
  "version": "0.0.1",
  "description": "Some description",
  "private": true,
  "author": "My",
  "license": "MIT",
  ...
  dependencies: {
   ...
  }
  devDependencies: {
   ...
  }

The current version is version: 0.0.1

After run dependabot and create the corresponding PR for some library update, is there a way to increase the number of the package.json (with semver), like this:

      {
      "name": "my-projetc",
      "version": "0.0.2",
      "description": "Some description",
      "private": true,
      "author": "My",
      "license": "MIT",
      ...
      dependencies: {
       ...
      }
      devDependencies: {
       ...
      }

After the update the version should be: version: 0.0.2

According to the documentation there are existing options for

* automerged_updates and
* version_requirement_updates

But both options are for updating the versions of the libraries used inside the dependencies or devDependencies.

0

There are 0 best solutions below