aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-18 02:24:15 +0800
committerFabio Berger <me@fabioberger.com>2017-11-18 02:24:15 +0800
commit2e368b50ebb8080bad46412fcf8defbc34eabcef (patch)
tree4062102b57958af83180957cf194eb969c642d68 /packages
parent7b61ad639b7410c9157e340a422b431b25dc620d (diff)
downloaddexon-sol-tools-2e368b50ebb8080bad46412fcf8defbc34eabcef.tar
dexon-sol-tools-2e368b50ebb8080bad46412fcf8defbc34eabcef.tar.gz
dexon-sol-tools-2e368b50ebb8080bad46412fcf8defbc34eabcef.tar.bz2
dexon-sol-tools-2e368b50ebb8080bad46412fcf8defbc34eabcef.tar.lz
dexon-sol-tools-2e368b50ebb8080bad46412fcf8defbc34eabcef.tar.xz
dexon-sol-tools-2e368b50ebb8080bad46412fcf8defbc34eabcef.tar.zst
dexon-sol-tools-2e368b50ebb8080bad46412fcf8defbc34eabcef.zip
print out file name in console
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/scripts/postpublish.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/0x.js/scripts/postpublish.js b/packages/0x.js/scripts/postpublish.js
index e8ca99db9..519973f61 100644
--- a/packages/0x.js/scripts/postpublish.js
+++ b/packages/0x.js/scripts/postpublish.js
@@ -40,8 +40,9 @@ getLatestTagAndVersionAsync(subPackageName)
if (result.stderr !== '') {
throw new Error(result.stderr);
}
- console.log('POSTPUBLISH: Doc generation successful, uploading docs...');
- const s3Url = 's3://0xjs-docs-jsons/v' + version +'.json';
+ const fileName = 'v' + version + '.json';
+ console.log('POSTPUBLISH: Doc generation successful, uploading docs... as ', fileName);
+ const s3Url = 's3://0xjs-docs-jsons/' + fileName;
return execAsync('aws s3 cp ' + __dirname + '/../docs/index.json ' + s3Url + ' --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type aplication/json');
}).catch (function(err) {
throw err;