aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-02-10 02:19:33 +0800
committerGitHub <noreply@github.com>2018-02-10 02:19:33 +0800
commit58f1939ec1d3b894b6508b06ed8f276c5d1a462d (patch)
tree7573bd906a1f730981ae00fefc006bdf6624c95b /scripts
parent936f6ac10fe55257d846204ce4e5bd39ca27c78d (diff)
parentd7a7e28925257860b4fea9c523eb46c8b98ab511 (diff)
downloaddexon-sol-tools-58f1939ec1d3b894b6508b06ed8f276c5d1a462d.tar
dexon-sol-tools-58f1939ec1d3b894b6508b06ed8f276c5d1a462d.tar.gz
dexon-sol-tools-58f1939ec1d3b894b6508b06ed8f276c5d1a462d.tar.bz2
dexon-sol-tools-58f1939ec1d3b894b6508b06ed8f276c5d1a462d.tar.lz
dexon-sol-tools-58f1939ec1d3b894b6508b06ed8f276c5d1a462d.tar.xz
dexon-sol-tools-58f1939ec1d3b894b6508b06ed8f276c5d1a462d.tar.zst
dexon-sol-tools-58f1939ec1d3b894b6508b06ed8f276c5d1a462d.zip
Merge pull request #382 from 0xProject/feature/clean-post-publish-scripts
Simplify standard postpublish script and remove them from some privat…
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..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,
};