{
  "branches": [
    "main"
  ],
  "plugins": [
    [
      "@semantic-release/commit-analyzer",
      {
        "preset": "conventionalcommits"
      }
    ],
    [
      "@semantic-release/release-notes-generator",
      {
        "preset": "conventionalcommits"
      }
    ],
    [
      "@semantic-release/changelog",
      {
        "changelogTitle": "# Changelog"
      }
    ],
    [
      "semantic-release-replace-plugin",
      {
        "replacements": [
          {
            "files": [
              "flake.nix"
            ],
            "from": "version = \"[0-9]+\\.[0-9]+\\.[0-9]+\";",
            "to": "version = \"${nextRelease.version}\";",
            "results": [
              {
                "file": "flake.nix",
                "hasChanged": true,
                "numMatches": 1,
                "numReplacements": 1
              }
            ],
            "countMatches": true
          }
        ]
      }
    ],
    "semantic-release-cargo",
    [
      "@semantic-release/git",
      {
        "message": "chore(release): release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
        "assets": [
          "CHANGELOG.md",
          "Cargo.toml",
          "Cargo.lock",
          "flake.nix"
        ]
      }
    ],
    "@semantic-release/github"
  ]
}
