chore: use metadumper service to create index.json file (#14158)

This commit is contained in:
Samuel Attard 2018-08-16 22:23:46 -07:00 committed by Shelley Vohr
parent 8b6072b411
commit 59d6c1e063
2 changed files with 23 additions and 23 deletions

View file

@ -180,11 +180,7 @@ function uploadNodeShasums () {
function uploadIndexJson () {
console.log('Uploading index.json to S3.')
let scriptPath = path.join(__dirname, 'upload-index-json.py')
let scriptArgs = []
if (args.automaticRelease) {
scriptArgs.push('-R')
}
runScript(scriptPath, scriptArgs)
runScript(scriptPath, [pkgVersion])
console.log(`${pass} Done uploading index.json to S3.`)
}
@ -275,9 +271,7 @@ async function makeRelease (releaseToValidate) {
checkVersion()
let draftRelease = await getDraftRelease()
uploadNodeShasums()
// FIXME(codebytere): re-enable later
if (process.env.UPLOAD_INDEX_JSON) uploadIndexJson()
uploadIndexJson()
await createReleaseShasums(draftRelease)
// Fetch latest version of release before verifying