aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/scripts
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-01-26 02:48:41 +0800
committerGitHub <noreply@github.com>2018-01-26 02:48:41 +0800
commitc559fbbe8cc39a678f8de00c17c6451e15c161aa (patch)
treef7be58bfadec0ab3b5f92a31693ea0d0019b45a5 /packages/testnet-faucets/scripts
parentf58f0ddb67555c3f0c7252ea3e003824984c48ad (diff)
parent390534497e834bae8bbbf6e3325bbfb20bdd7564 (diff)
downloaddexon-sol-tools-c559fbbe8cc39a678f8de00c17c6451e15c161aa.tar
dexon-sol-tools-c559fbbe8cc39a678f8de00c17c6451e15c161aa.tar.gz
dexon-sol-tools-c559fbbe8cc39a678f8de00c17c6451e15c161aa.tar.bz2
dexon-sol-tools-c559fbbe8cc39a678f8de00c17c6451e15c161aa.tar.lz
dexon-sol-tools-c559fbbe8cc39a678f8de00c17c6451e15c161aa.tar.xz
dexon-sol-tools-c559fbbe8cc39a678f8de00c17c6451e15c161aa.tar.zst
dexon-sol-tools-c559fbbe8cc39a678f8de00c17c6451e15c161aa.zip
Merge pull request #339 from 0xProject/feature/kovan-faucets/all-testnet-support
Add support for all testnets to the faucet
Diffstat (limited to 'packages/testnet-faucets/scripts')
-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;
+ });