aboutsummaryrefslogtreecommitdiffstats
path: root/packages/chai-as-promised-typescript-typings
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-13 04:53:11 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-13 05:16:45 +0800
commitfeace988b4f6f361adb45ed17f16c3d7f5d9a514 (patch)
treeb848f8681cf69372f71316f3244bb73629370512 /packages/chai-as-promised-typescript-typings
parent4d30e1115f24905fb51c482abc147ffdd7d0f8ec (diff)
downloaddexon-0x-contracts-feace988b4f6f361adb45ed17f16c3d7f5d9a514.tar.gz
dexon-0x-contracts-feace988b4f6f361adb45ed17f16c3d7f5d9a514.tar.zst
dexon-0x-contracts-feace988b4f6f361adb45ed17f16c3d7f5d9a514.zip
Add postpublish scripts
Diffstat (limited to 'packages/chai-as-promised-typescript-typings')
-rw-r--r--packages/chai-as-promised-typescript-typings/scripts/postpublish.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/chai-as-promised-typescript-typings/scripts/postpublish.js b/packages/chai-as-promised-typescript-typings/scripts/postpublish.js
new file mode 100644
index 000000000..16d67e03f
--- /dev/null
+++ b/packages/chai-as-promised-typescript-typings/scripts/postpublish.js
@@ -0,0 +1,15 @@
+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;
+ });