aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/scripts/postpublish.js
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-01-24 02:10:43 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-01-24 02:10:43 +0800
commitd965fdb11dfba5631c1f98ad3e309876c199999a (patch)
treeec10b7341707cfcc6841d1b5fcbf0d3852536a79 /packages/testnet-faucets/scripts/postpublish.js
parent8a858501f2b633f47cec9576b25e6f99911bbc09 (diff)
downloaddexon-sol-tools-d965fdb11dfba5631c1f98ad3e309876c199999a.tar
dexon-sol-tools-d965fdb11dfba5631c1f98ad3e309876c199999a.tar.gz
dexon-sol-tools-d965fdb11dfba5631c1f98ad3e309876c199999a.tar.bz2
dexon-sol-tools-d965fdb11dfba5631c1f98ad3e309876c199999a.tar.lz
dexon-sol-tools-d965fdb11dfba5631c1f98ad3e309876c199999a.tar.xz
dexon-sol-tools-d965fdb11dfba5631c1f98ad3e309876c199999a.tar.zst
dexon-sol-tools-d965fdb11dfba5631c1f98ad3e309876c199999a.zip
Rename to testnet-faucets
Diffstat (limited to 'packages/testnet-faucets/scripts/postpublish.js')
-rw-r--r--packages/testnet-faucets/scripts/postpublish.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/testnet-faucets/scripts/postpublish.js b/packages/testnet-faucets/scripts/postpublish.js
new file mode 100644
index 000000000..16d67e03f
--- /dev/null
+++ b/packages/testnet-faucets/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;
+ });