/**
 * @type {import('semantic-release').GlobalConfig}
 */
export default {
  branches: ["main", { name: "devel" }],
  plugins: [
    [
      "semantic-release-gitmoji",
      {
        releaseRules: {
          major: [":boom:"],
          minor: [":sparkles:"],
          patch: [
            ":bug:",
            ":ambulance:",
            ":lipstick:",
            ":lock:",
            ":zap:",
            ":chart_with_upwards_trend:",
            ":globe_with_meridians:",
            ":alien:",
            ":wheelchair:",
            ":mag:",
            ":children_crossing:",
            ":speech_balloon:",
            ":iphone:",
            ":pencil2:",
            ":bento:",
          ],
        },
      },
    ],
    [
      "@semantic-release/exec",
      {
        successCmd:
          "echo 'NOTES=${nextRelease.notes}' >> $GITHUB_OUTPUT",
      },
    ],
  ],
};
