aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2017-12-09 06:56:56 +0800
committerBrandon Millman <brandon.millman@gmail.com>2017-12-09 07:01:52 +0800
commit9c6453e12969bb3564e3146e66806476d7cd7b21 (patch)
tree868178797e4250299b5da300fb0f5812f21dd2f8 /packages/subproviders
parenta6f97181310c9acba176b2a28ffba1ca7d53727d (diff)
downloaddexon-0x-contracts-9c6453e12969bb3564e3146e66806476d7cd7b21.tar
dexon-0x-contracts-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.gz
dexon-0x-contracts-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.bz2
dexon-0x-contracts-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.lz
dexon-0x-contracts-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.xz
dexon-0x-contracts-9c6453e12969bb3564e3146e66806476d7cd7b21.tar.zst
dexon-0x-contracts-9c6453e12969bb3564e3146e66806476d7cd7b21.zip
Fix broken postpublish_utils, add CHANGELOG and postpublish.js scripts to all packages
Diffstat (limited to 'packages/subproviders')
-rw-r--r--packages/subproviders/CHANGELOG.md4
-rw-r--r--packages/subproviders/scripts/postpublish.js14
2 files changed, 18 insertions, 0 deletions
diff --git a/packages/subproviders/CHANGELOG.md b/packages/subproviders/CHANGELOG.md
new file mode 100644
index 000000000..b4cce6be0
--- /dev/null
+++ b/packages/subproviders/CHANGELOG.md
@@ -0,0 +1,4 @@
+# CHANGELOG
+
+vx.x.x
+------------------------
diff --git a/packages/subproviders/scripts/postpublish.js b/packages/subproviders/scripts/postpublish.js
new file mode 100644
index 000000000..7fa452b08
--- /dev/null
+++ b/packages/subproviders/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;
+ });