aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/postpublish_utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/postpublish_utils.js')
-rw-r--r--scripts/postpublish_utils.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/postpublish_utils.js b/scripts/postpublish_utils.js
index c4ca917da..7ce01189c 100644
--- a/scripts/postpublish_utils.js
+++ b/scripts/postpublish_utils.js
@@ -29,7 +29,7 @@ module.exports = {
};
});
},
- publishReleaseNotes: function(tag, releaseName, assets) {
+ publishReleaseNotesAsync: function(tag, releaseName, assets) {
console.log('POSTPUBLISH: Releasing ', releaseName, '...');
return publishReleaseAsync({
token: githubPersonalAccessToken,
@@ -49,5 +49,16 @@ module.exports = {
const releaseName = subPackageName + ' v' + version;
return releaseName;
},
+ standardPostPublishAsync: function(subPackageName) {
+ return this.getLatestTagAndVersionAsync(subPackageName)
+ .then(function(result) {
+ const releaseName = this.getReleaseName(subPackageName, result.version);
+ const assets = [];
+ return this.publishReleaseNotesAsync(result.tag, releaseName, assets);
+ }.bind(this))
+ .catch(function(err) {
+ throw err;
+ });
+ },
generatedDocsDirectoryName,
};