Skip to content

Helper Presets

helpers:disableTypesNodeMajor

Disable major updates to @types/node.

{
  "packageRules": [
    {
      "enabled": false,
      "matchPackageNames": [
        "@types/node"
      ],
      "matchUpdateTypes": [
        "major"
      ]
    }
  ]
}

helpers:followTypescriptNext

Keep typescript version in sync with the next tag.

{
  "extends": [
    ":followTag(typescript, next)"
  ]
}

helpers:followTypescriptRc

Keep typescript version in sync with the rc tag.

{
  "extends": [
    ":followTag(typescript, rc)"
  ]
}

helpers:pinGitHubActionDigests

Pin github-action digests.

{
  "packageRules": [
    {
      "matchDepTypes": [
        "action"
      ],
      "pinDigests": true
    }
  ]
}

helpers:pinGitHubActionDigestsToSemver

Convert pinned GitHub Action digests to SemVer.

{
  "packageRules": [
    {
      "extends": [
        "helpers:pinGitHubActionDigests"
      ],
      "extractVersion": "^(?<version>v\\d+\\.\\d+\\.\\d+)$",
      "versioning": "regex:^v?(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$"
    }
  ]
}