aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-utils/scripts/postpublish.js
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2018-01-13 09:03:22 +0800
committerGitHub <noreply@github.com>2018-01-13 09:03:22 +0800
commit62e3feeb94bcbd8dd32cba24a0270b4afabce7e8 (patch)
treee8bd328d39709345da4c494e0d1dfd6d506130f8 /packages/dev-utils/scripts/postpublish.js
parenta95049450346459c5e6a211464e94fc4f702cebb (diff)
parent3cb310122e7410a17f9d5131d564e5c332f0aa1c (diff)
downloaddexon-sol-tools-62e3feeb94bcbd8dd32cba24a0270b4afabce7e8.tar
dexon-sol-tools-62e3feeb94bcbd8dd32cba24a0270b4afabce7e8.tar.gz
dexon-sol-tools-62e3feeb94bcbd8dd32cba24a0270b4afabce7e8.tar.bz2
dexon-sol-tools-62e3feeb94bcbd8dd32cba24a0270b4afabce7e8.tar.lz
dexon-sol-tools-62e3feeb94bcbd8dd32cba24a0270b4afabce7e8.tar.xz
dexon-sol-tools-62e3feeb94bcbd8dd32cba24a0270b4afabce7e8.tar.zst
dexon-sol-tools-62e3feeb94bcbd8dd32cba24a0270b4afabce7e8.zip
Merge pull request #319 from 0xProject/feature/final-monorepo
Import last TS packages into the monorepo
Diffstat (limited to 'packages/dev-utils/scripts/postpublish.js')
-rw-r--r--packages/dev-utils/scripts/postpublish.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/dev-utils/scripts/postpublish.js b/packages/dev-utils/scripts/postpublish.js
new file mode 100644
index 000000000..16d67e03f
--- /dev/null
+++ b/packages/dev-utils/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;
+ });