diff options
author | Steve Klebanoff <steve@0xproject.com> | 2019-01-10 08:49:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-10 08:49:12 +0800 |
commit | 686f27a96f0cd749f6315d7edd2bb56cf1819245 (patch) | |
tree | 47255b7472a582b1a284138a123a1e24612645db /packages/monorepo-scripts/src/prepublish_checks.ts | |
parent | 6487fae1131eb6e9215c918f23bac317157f368b (diff) | |
parent | 80f1fe1373e4da161b124d86dd8ec93310b2ea82 (diff) | |
download | dexon-sol-tools-686f27a96f0cd749f6315d7edd2bb56cf1819245.tar dexon-sol-tools-686f27a96f0cd749f6315d7edd2bb56cf1819245.tar.gz dexon-sol-tools-686f27a96f0cd749f6315d7edd2bb56cf1819245.tar.bz2 dexon-sol-tools-686f27a96f0cd749f6315d7edd2bb56cf1819245.tar.lz dexon-sol-tools-686f27a96f0cd749f6315d7edd2bb56cf1819245.tar.xz dexon-sol-tools-686f27a96f0cd749f6315d7edd2bb56cf1819245.tar.zst dexon-sol-tools-686f27a96f0cd749f6315d7edd2bb56cf1819245.zip |
Merge pull request #1482 from 0xProject/feature/monorepo/release-notes
[monorepo-scripts] Automatically alert new release to Discord
Diffstat (limited to 'packages/monorepo-scripts/src/prepublish_checks.ts')
-rw-r--r-- | packages/monorepo-scripts/src/prepublish_checks.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/prepublish_checks.ts b/packages/monorepo-scripts/src/prepublish_checks.ts index 36e61714b..82eaf5cf9 100644 --- a/packages/monorepo-scripts/src/prepublish_checks.ts +++ b/packages/monorepo-scripts/src/prepublish_checks.ts @@ -140,6 +140,13 @@ async function checkPublishRequiredSetupAsync(): Promise<void> { ); } + // Check to see if discord URL is set up + if (_.isUndefined(constants.discordAlertWebhookUrl)) { + throw new Error( + 'You must have a discord webhook URL set to an envVar named `DISCORD_GITHUB_RELEASE_WEBHOOK_URL`. Add it then try again.', + ); + } + // Check Yarn version is 1.X utils.log('Checking the yarn version...'); const result = await execAsync(`yarn --version`); |