Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #11324 from brave/build-package-channels
Browse files Browse the repository at this point in the history
Build package channels
  • Loading branch information
bbondy committed Oct 6, 2017
1 parent 8e97420 commit 1855f1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = require('../js/constants/buildConfig')
// The current channel is retrieved first from the buildConfig constants file,
// then the environments and finally defaults to dev
var channel = config.channel || process.env.CHANNEL || 'dev'
let channels = new Set(['dev', 'beta', 'stable'])
let channels = new Set(['dev', 'beta', 'stable', 'developer', 'nightly'])

if (!channels.has(channel)) {
throw new Error(`Invalid channel ${channel}`)
Expand Down
4 changes: 2 additions & 2 deletions tools/buildPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ var env = {
CHANNEL: process.env.CHANNEL
}

var channels = { dev: true, beta: true, stable: true }
var channels = { dev: true, beta: true, stable: true, nightly: true, developer: true }
if (!channels[env.CHANNEL]) {
throw new Error('CHANNEL environment variable must be set to dev, beta or stable')
throw new Error('CHANNEL environment variable must be set to dev, beta, stable, nightly, or developer')
}

console.log('Writing buildConfig.js...')
Expand Down

0 comments on commit 1855f1a

Please sign in to comment.