Skip to content

Commit

Permalink
refactor: 🔥 Tidied up the release config
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsRepos committed Jun 3, 2024
1 parent ee9670f commit c8a65f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ if (!branch) {
throw new Error("CURRENT_BRANCH not set");
}

const isMain = branch === "main";

/**
* @type {import("semantic-release").GlobalConfig}
*/
Expand Down Expand Up @@ -77,7 +75,7 @@ const config = {
],
};

if (isMain) {
if (branch === "main") {
config.plugins.splice(-2, 0, "@semantic-release/github");
}

Expand Down

0 comments on commit c8a65f1

Please sign in to comment.