Skip to content

Commit

Permalink
fix: properly check release channel
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Dec 20, 2022
1 parent b708bc1 commit 7eb8172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function prepare(pluginConfig, context) {
const basePath = pkgRoot ? path.resolve(cwd, pkgRoot) : cwd;
let pepVersion = version;

if (channel !== undefined) {
if (channel !== undefined && channel !== "undefined") {
const [mainVersion, versionSuffix] = version.split("-");
const [, buildVersion] = versionSuffix.split(".");
const separator = channelMap[channel] ?? "dev";
Expand Down

0 comments on commit 7eb8172

Please sign in to comment.