aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/scripts/postpublish.js
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2017-12-12 05:10:43 +0800
committerGitHub <noreply@github.com>2017-12-12 05:10:43 +0800
commit1339aadf4e495817f5172498c76da3399c8ac806 (patch)
tree868178797e4250299b5da300fb0f5812f21dd2f8 /packages/utils/scripts/postpublish.js
parenta6f97181310c9acba176b2a28ffba1ca7d53727d (diff)
parent9c6453e12969bb3564e3146e66806476d7cd7b21 (diff)
downloaddexon-sol-tools-1339aadf4e495817f5172498c76da3399c8ac806.tar
dexon-sol-tools-1339aadf4e495817f5172498c76da3399c8ac806.tar.gz
dexon-sol-tools-1339aadf4e495817f5172498c76da3399c8ac806.tar.bz2
dexon-sol-tools-1339aadf4e495817f5172498c76da3399c8ac806.tar.lz
dexon-sol-tools-1339aadf4e495817f5172498c76da3399c8ac806.tar.xz
dexon-sol-tools-1339aadf4e495817f5172498c76da3399c8ac806.tar.zst
dexon-sol-tools-1339aadf4e495817f5172498c76da3399c8ac806.zip
Merge pull request #259 from 0xProject/fix/addChangelogAndPostpublishScripts
Fix broken postpublish_utils, add CHANGELOG and postpublish.js script…
Diffstat (limited to 'packages/utils/scripts/postpublish.js')
-rw-r--r--packages/utils/scripts/postpublish.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/utils/scripts/postpublish.js b/packages/utils/scripts/postpublish.js
new file mode 100644
index 000000000..7fa452b08
--- /dev/null
+++ b/packages/utils/scripts/postpublish.js
@@ -0,0 +1,14 @@
+const postpublish_utils = require('../../../scripts/postpublish_utils');
+const packageJSON = require('../package.json');
+
+const subPackageName = packageJSON.name;
+
+postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
+ .then(function(result) {
+ const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version);
+ const assets = [];
+ return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets);
+ })
+ .catch (function(err) {
+ throw err;
+ });