diff options
author | Leonid <logvinov.leon@gmail.com> | 2018-02-12 22:01:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-12 22:01:24 +0800 |
commit | 7f1e789264e2b67c7feffc633bd64caa257657cc (patch) | |
tree | 721cee22fbc45c71ea21fd296dda88c0a03d75a5 /scripts | |
parent | ba57c34adb0348af61210aa0bbee3e734b477f58 (diff) | |
parent | 07d00cc515e0f9825b81595386b358593b7a3d6f (diff) | |
download | dexon-sol-tools-7f1e789264e2b67c7feffc633bd64caa257657cc.tar dexon-sol-tools-7f1e789264e2b67c7feffc633bd64caa257657cc.tar.gz dexon-sol-tools-7f1e789264e2b67c7feffc633bd64caa257657cc.tar.bz2 dexon-sol-tools-7f1e789264e2b67c7feffc633bd64caa257657cc.tar.lz dexon-sol-tools-7f1e789264e2b67c7feffc633bd64caa257657cc.tar.xz dexon-sol-tools-7f1e789264e2b67c7feffc633bd64caa257657cc.tar.zst dexon-sol-tools-7f1e789264e2b67c7feffc633bd64caa257657cc.zip |
Merge branch 'development' into fix/windows_install
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/postpublish_utils.js | 13 |
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, }; |