Skip to content

Commit

Permalink
Fix the getVersion call
Browse files Browse the repository at this point in the history
  • Loading branch information
joshaber committed Nov 20, 2017
1 parent 6901b04 commit a52dde7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/publish
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const TEST_PUBLISH = false
const PUBLISH_CHANNELS = ['production', 'test', 'beta']
const distInfo = require('./dist-info')
const gitInfo = require('../app/git-info')
const packageInfo = require('../app/package-info')

if (PUBLISH_CHANNELS.indexOf(distInfo.getReleaseChannel()) < 0) {
console.log('Not a publishable build. Skipping publish.')
Expand Down Expand Up @@ -113,7 +114,7 @@ function upload(assetName, assetPath) {
const s3 = new AWS.S3(s3Info)

const bucket = process.env.S3_BUCKET
const key = `releases/${distInfo.getVersion()}-${sha}/${assetName.replace(
const key = `releases/${packageInfo.getVersion()}-${sha}/${assetName.replace(
/ /g,
''
)}`
Expand Down

0 comments on commit a52dde7

Please sign in to comment.