diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-18 04:10:18 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-18 04:10:18 +0800 |
commit | 5015f2d7d75974a5ce950e8f05d6a5ab481c488a (patch) | |
tree | bd6a2fb6b4026ec2550e4e1aeea87b24c2ce50a9 /packages/tslint-config/scripts/postpublish.js | |
parent | 5277d4a2666a795d01b7d3d4d018ca6d0e42399f (diff) | |
download | dexon-0x-contracts-5015f2d7d75974a5ce950e8f05d6a5ab481c488a.tar dexon-0x-contracts-5015f2d7d75974a5ce950e8f05d6a5ab481c488a.tar.gz dexon-0x-contracts-5015f2d7d75974a5ce950e8f05d6a5ab481c488a.tar.bz2 dexon-0x-contracts-5015f2d7d75974a5ce950e8f05d6a5ab481c488a.tar.lz dexon-0x-contracts-5015f2d7d75974a5ce950e8f05d6a5ab481c488a.tar.xz dexon-0x-contracts-5015f2d7d75974a5ce950e8f05d6a5ab481c488a.tar.zst dexon-0x-contracts-5015f2d7d75974a5ce950e8f05d6a5ab481c488a.zip |
Add postpublish scripts for all the subpackages so that they each publish a release to github
Diffstat (limited to 'packages/tslint-config/scripts/postpublish.js')
-rw-r--r-- | packages/tslint-config/scripts/postpublish.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/tslint-config/scripts/postpublish.js b/packages/tslint-config/scripts/postpublish.js new file mode 100644 index 000000000..c6e1b3630 --- /dev/null +++ b/packages/tslint-config/scripts/postpublish.js @@ -0,0 +1,13 @@ +const postpublish_utils = require('../../../scripts/postpublish_utils'); + +const subPackageName = '0xproject/tslint-config'; + +postpublish_utils.getLatestTagAndVersionAsync(subPackageName) + .then(function(result) { + const releaseName = subPackageName + ' v' + result.version; + const assets = []; + return postpublish_utils.publishReleaseNotes(result.tag, releaseName, assets); + }) + .catch (function(err) { + throw err; + }); |