diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-18 08:30:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-18 08:30:51 +0800 |
commit | 98394c6e37ee2538f18d7c427fd72cbf23f3207d (patch) | |
tree | 188aa6be60a37ad0d7e53edcfc7c9975f93fa845 /packages/assert | |
parent | 5042b85d218bd17dcf0ebf9b3127dd30c5bb5962 (diff) | |
parent | 37a9b64503edc8fe750dad02a7a45d8303f9ba04 (diff) | |
download | dexon-sol-tools-98394c6e37ee2538f18d7c427fd72cbf23f3207d.tar dexon-sol-tools-98394c6e37ee2538f18d7c427fd72cbf23f3207d.tar.gz dexon-sol-tools-98394c6e37ee2538f18d7c427fd72cbf23f3207d.tar.bz2 dexon-sol-tools-98394c6e37ee2538f18d7c427fd72cbf23f3207d.tar.lz dexon-sol-tools-98394c6e37ee2538f18d7c427fd72cbf23f3207d.tar.xz dexon-sol-tools-98394c6e37ee2538f18d7c427fd72cbf23f3207d.tar.zst dexon-sol-tools-98394c6e37ee2538f18d7c427fd72cbf23f3207d.zip |
Merge pull request #228 from 0xProject/feature/publishLifecycleScripts
Add postpublish scripts for sub-packages
Diffstat (limited to 'packages/assert')
-rw-r--r-- | packages/assert/scripts/postpublish.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/assert/scripts/postpublish.js b/packages/assert/scripts/postpublish.js new file mode 100644 index 000000000..7fa452b08 --- /dev/null +++ b/packages/assert/scripts/postpublish.js @@ -0,0 +1,14 @@ +const postpublish_utils = require('../../../scripts/postpublish_utils'); +const packageJSON = require('../package.json'); + +const subPackageName = packageJSON.name; + +postpublish_utils.getLatestTagAndVersionAsync(subPackageName) + .then(function(result) { + const releaseName = postpublish_utils.getReleaseName(subPackageName, result.version); + const assets = []; + return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets); + }) + .catch (function(err) { + throw err; + }); |