Skip to content

Commit

Permalink
feat(publisher): Allow to configure channel for ERS (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
gossi authored and MarshallOfSound committed Mar 24, 2018
1 parent 5b86b64 commit d17d02c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ export default class PublisherERS extends PublisherBase {
const existingVersion = versions.find(version => version.name === packageJSON.version);

let channel = 'stable';
if (packageJSON.version.indexOf('beta') !== -1) {
if (config.channel) {
channel = config.channel;
} else if (packageJSON.version.indexOf('beta') !== -1) {
channel = 'beta';
}
if (packageJSON.version.indexOf('alpha') !== -1) {
} else if (packageJSON.version.indexOf('alpha') !== -1) {
channel = 'alpha';
}

Expand Down

0 comments on commit d17d02c

Please sign in to comment.