From 5015f2d7d75974a5ce950e8f05d6a5ab481c488a Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 17 Nov 2017 14:10:18 -0600 Subject: Add postpublish scripts for all the subpackages so that they each publish a release to github --- packages/tslint-config/scripts/postpublish.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/tslint-config/scripts/postpublish.js (limited to 'packages/tslint-config/scripts/postpublish.js') diff --git a/packages/tslint-config/scripts/postpublish.js b/packages/tslint-config/scripts/postpublish.js new file mode 100644 index 000000000..c6e1b3630 --- /dev/null +++ b/packages/tslint-config/scripts/postpublish.js @@ -0,0 +1,13 @@ +const postpublish_utils = require('../../../scripts/postpublish_utils'); + +const subPackageName = '0xproject/tslint-config'; + +postpublish_utils.getLatestTagAndVersionAsync(subPackageName) + .then(function(result) { + const releaseName = subPackageName + ' v' + result.version; + const assets = []; + return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets); + }) + .catch (function(err) { + throw err; + }); -- cgit v1.2.3 From 70f4453e3eb2818c883862f609885e077b6bc631 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 17 Nov 2017 14:33:43 -0600 Subject: Get package name from package.json --- packages/tslint-config/scripts/postpublish.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/tslint-config/scripts/postpublish.js') diff --git a/packages/tslint-config/scripts/postpublish.js b/packages/tslint-config/scripts/postpublish.js index c6e1b3630..08458f038 100644 --- a/packages/tslint-config/scripts/postpublish.js +++ b/packages/tslint-config/scripts/postpublish.js @@ -1,6 +1,7 @@ const postpublish_utils = require('../../../scripts/postpublish_utils'); +const packageJSON = require('../package.json'); -const subPackageName = '0xproject/tslint-config'; +const subPackageName = packageJSON.name; postpublish_utils.getLatestTagAndVersionAsync(subPackageName) .then(function(result) { -- cgit v1.2.3 From 7f595169c1bc02873d47a5b7411dfb7414c19041 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 17 Nov 2017 16:44:56 -0600 Subject: Put release name generation into postpublish_utils --- packages/tslint-config/scripts/postpublish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/tslint-config/scripts/postpublish.js') diff --git a/packages/tslint-config/scripts/postpublish.js b/packages/tslint-config/scripts/postpublish.js index 08458f038..7fa452b08 100644 --- a/packages/tslint-config/scripts/postpublish.js +++ b/packages/tslint-config/scripts/postpublish.js @@ -5,7 +5,7 @@ const subPackageName = packageJSON.name; postpublish_utils.getLatestTagAndVersionAsync(subPackageName) .then(function(result) { - const releaseName = subPackageName + ' v' + result.version; + const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version); const assets = []; return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets); }) -- cgit v1.2.3