diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-13 04:53:11 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-13 05:16:45 +0800 |
commit | feace988b4f6f361adb45ed17f16c3d7f5d9a514 (patch) | |
tree | b848f8681cf69372f71316f3244bb73629370512 /packages/web3-typescript-typings | |
parent | 4d30e1115f24905fb51c482abc147ffdd7d0f8ec (diff) | |
download | dexon-sol-tools-feace988b4f6f361adb45ed17f16c3d7f5d9a514.tar.gz dexon-sol-tools-feace988b4f6f361adb45ed17f16c3d7f5d9a514.tar.zst dexon-sol-tools-feace988b4f6f361adb45ed17f16c3d7f5d9a514.zip |
Add postpublish scripts
Diffstat (limited to 'packages/web3-typescript-typings')
-rw-r--r-- | packages/web3-typescript-typings/scripts/postpublish.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/web3-typescript-typings/scripts/postpublish.js b/packages/web3-typescript-typings/scripts/postpublish.js new file mode 100644 index 000000000..16d67e03f --- /dev/null +++ b/packages/web3-typescript-typings/scripts/postpublish.js @@ -0,0 +1,15 @@ +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; + }); |