diff --git a/packages/publisher/electron-release-server/src/PublisherERS.ts b/packages/publisher/electron-release-server/src/PublisherERS.ts index 3902cf9d97..fd46396542 100644 --- a/packages/publisher/electron-release-server/src/PublisherERS.ts +++ b/packages/publisher/electron-release-server/src/PublisherERS.ts @@ -85,6 +85,8 @@ export default class PublisherERS extends PublisherBase { let channel = 'stable'; if (config.channel) { channel = config.channel; + } else if (packageJSON.version.includes('rc')) { + channel = 'rc'; } else if (packageJSON.version.includes('beta')) { channel = 'beta'; } else if (packageJSON.version.includes('alpha')) { @@ -127,7 +129,7 @@ export default class PublisherERS extends PublisherBase { d('attempting to upload asset:', artifactPath); const artifactForm = new FormData(); artifactForm.append('token', token); - artifactForm.append('version', packageJSON.version); + artifactForm.append('version', `${packageJSON.version}_${flavor}`); artifactForm.append('platform', ersPlatform(makeResult.platform, makeResult.arch)); // see https://github.com/form-data/form-data/issues/426