From feace988b4f6f361adb45ed17f16c3d7f5d9a514 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 12 Jan 2018 21:53:11 +0100 Subject: Add postpublish scripts --- packages/monorepo-scripts/scripts/postpublish.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/monorepo-scripts/scripts/postpublish.js (limited to 'packages/monorepo-scripts/scripts/postpublish.js') diff --git a/packages/monorepo-scripts/scripts/postpublish.js b/packages/monorepo-scripts/scripts/postpublish.js new file mode 100644 index 000000000..16d67e03f --- /dev/null +++ b/packages/monorepo-scripts/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; + }); -- cgit v1.2.3