module.exports = {
  branches: ['master'],
  plugins: [
    '@semantic-release/commit-analyzer',
    '@semantic-release/release-notes-generator',
    [
      "@semantic-release/changelog",
      {
        "changelogFile": "CHANGELOG.md"
      }
    ],
    [
      '@semantic-release/exec',
      {
        verifyReleaseCmd: 'cargo check --all-targets && cargo clippy --all-targets -- -D warnings && cargo test',
        prepareCmd: './.github/prepare-release.sh ${nextRelease.version}',
      },
    ],
    [
      "@semantic-release/git",
      {
        "assets": ["Cargo.toml", "Cargo.lock", "CHANGELOG.md"],
        "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
      }
    ],
    '@semantic-release/github',
  ],
};

