aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-02-09 03:23:37 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-02-09 03:46:33 +0800
commit6dec29e214e6c9f222a7673efd97d21b3952b090 (patch)
tree400a52739b2171a49c2ffd8fd452190e04807ff9 /scripts
parent254d3f53e2cd09eed3eb6b8ce841f546d01dcdcd (diff)
downloaddexon-sol-tools-6dec29e214e6c9f222a7673efd97d21b3952b090.tar.gz
dexon-sol-tools-6dec29e214e6c9f222a7673efd97d21b3952b090.tar.zst
dexon-sol-tools-6dec29e214e6c9f222a7673efd97d21b3952b090.zip
Simplify standard postpublish script and remove them from some private packages
Diffstat (limited to 'scripts')
-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..9603827db 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 getLatestTagAndVersionAsync(subPackageName)
+ .then(function(result) {
+ const releaseName = getReleaseName(subPackageName, result.version);
+ const assets = [];
+ return publishReleaseNotesAsync(result.tag, releaseName, assets);
+ })
+ .catch(function(err) {
+ throw err;
+ });
+ },
generatedDocsDirectoryName,
};