aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-18 04:49:46 +0800
committerFabio Berger <me@fabioberger.com>2017-11-18 04:49:46 +0800
commit49ba456189bf43149a9f58aa01ecd820baa52082 (patch)
tree6244d7d96787a8d3efa8620a0cf03c2a93f437b8 /packages
parent6a83687f45db37cbb8bdb24a7bb090094a6cae08 (diff)
downloaddexon-0x-contracts-49ba456189bf43149a9f58aa01ecd820baa52082.tar.gz
dexon-0x-contracts-49ba456189bf43149a9f58aa01ecd820baa52082.tar.zst
dexon-0x-contracts-49ba456189bf43149a9f58aa01ecd820baa52082.zip
Set S3 bucket path to variable
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/scripts/postpublish.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/0x.js/scripts/postpublish.js b/packages/0x.js/scripts/postpublish.js
index bf4c63032..3756b8984 100644
--- a/packages/0x.js/scripts/postpublish.js
+++ b/packages/0x.js/scripts/postpublish.js
@@ -4,6 +4,7 @@ const packageJSON = require('../package.json');
const cwd = __dirname + '/..';
const subPackageName = packageJSON.name;
+const S3BucketPath = 's3://0xjs-docs-jsons/',
let tag;
let version;
@@ -34,7 +35,7 @@ postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
}
const fileName = 'v' + version + '.json';
console.log('POSTPUBLISH: Doc generation successful, uploading docs... as ', fileName);
- const s3Url = 's3://0xjs-docs-jsons/' + fileName;
+ const s3Url = S3BucketPath + fileName;
return execAsync('S3_URL=' + s3Url + ' yarn upload_docs_json', {
cwd,
});