{
  "branches": [
    "main",
    {
      "name": "alpha",
      "prerelease": true
    },
    {
      "name": "beta",
      "prerelease": true
    }
  ],
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/changelog",
    [
      "@semantic-release/exec",
      {
        "prepareCmd": "./scripts/bundle.sh ${nextRelease.version} && ./scripts/package.sh ${nextRelease.version} && npx prettier --write CHANGELOG.md"
      }
    ],
    "@semantic-release/npm",
    [
      "@semantic-release/git",
      {
        "assets": [
          "app/Config/Constants.php",
          "composer.json",
          "package.json",
          "package-lock.json",
          "CHANGELOG.md"
        ]
      }
    ],
    [
      "@semantic-release/gitlab",
      {
        "gitlabUrl": "https://code.castopod.org/",
        "assets": [
          {
            "path": "castopod-*.zip",
            "label": "Castopod Package (zip)"
          },
          {
            "path": "castopod-*.tar.gz",
            "label": "Castopod Package (tar.gz)"
          }
        ]
      }
    ]
  ]
}
