From c8a65f1547d9fd7a10318b5d4a0e1066975f68fa Mon Sep 17 00:00:00 2001 From: Jam <1347620+JamsRepos@users.noreply.github.com> Date: Mon, 3 Jun 2024 11:54:14 +0100 Subject: [PATCH] refactor: :fire: Tidied up the release config --- release.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/release.config.js b/release.config.js index 0cce4af..56cb923 100644 --- a/release.config.js +++ b/release.config.js @@ -4,8 +4,6 @@ if (!branch) { throw new Error("CURRENT_BRANCH not set"); } -const isMain = branch === "main"; - /** * @type {import("semantic-release").GlobalConfig} */ @@ -77,7 +75,7 @@ const config = { ], }; -if (isMain) { +if (branch === "main") { config.plugins.splice(-2, 0, "@semantic-release/github"); }