diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-18 04:49:46 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-18 04:49:46 +0800 |
commit | 49ba456189bf43149a9f58aa01ecd820baa52082 (patch) | |
tree | 6244d7d96787a8d3efa8620a0cf03c2a93f437b8 /packages/0x.js/scripts | |
parent | 6a83687f45db37cbb8bdb24a7bb090094a6cae08 (diff) | |
download | dexon-sol-tools-49ba456189bf43149a9f58aa01ecd820baa52082.tar.gz dexon-sol-tools-49ba456189bf43149a9f58aa01ecd820baa52082.tar.zst dexon-sol-tools-49ba456189bf43149a9f58aa01ecd820baa52082.zip |
Set S3 bucket path to variable
Diffstat (limited to 'packages/0x.js/scripts')
-rw-r--r-- | packages/0x.js/scripts/postpublish.js | 3 |
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, }); |