aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/prepublish_checks.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-18 19:53:04 +0800
committerGitHub <noreply@github.com>2019-01-18 19:53:04 +0800
commitc8212f1d4d255120e5e683664b86f1830fb45ae6 (patch)
tree73f1528a36b8fc8a0778e164b1579eb5865d944a /packages/monorepo-scripts/src/prepublish_checks.ts
parent7d166dc7da23c30540fb554727a955015073286f (diff)
parentbef30e4209b26c8d4f443f8672e9acb9471c6a37 (diff)
downloaddexon-sol-tools-c8212f1d4d255120e5e683664b86f1830fb45ae6.tar
dexon-sol-tools-c8212f1d4d255120e5e683664b86f1830fb45ae6.tar.gz
dexon-sol-tools-c8212f1d4d255120e5e683664b86f1830fb45ae6.tar.bz2
dexon-sol-tools-c8212f1d4d255120e5e683664b86f1830fb45ae6.tar.lz
dexon-sol-tools-c8212f1d4d255120e5e683664b86f1830fb45ae6.tar.xz
dexon-sol-tools-c8212f1d4d255120e5e683664b86f1830fb45ae6.tar.zst
dexon-sol-tools-c8212f1d4d255120e5e683664b86f1830fb45ae6.zip
Merge branch 'development' into feature/bignumber-8.0
Diffstat (limited to 'packages/monorepo-scripts/src/prepublish_checks.ts')
-rw-r--r--packages/monorepo-scripts/src/prepublish_checks.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/prepublish_checks.ts b/packages/monorepo-scripts/src/prepublish_checks.ts
index 82eaf5cf9..021e57226 100644
--- a/packages/monorepo-scripts/src/prepublish_checks.ts
+++ b/packages/monorepo-scripts/src/prepublish_checks.ts
@@ -6,6 +6,8 @@ import semverSort = require('semver-sort');
import { constants } from './constants';
import { Package } from './types';
import { changelogUtils } from './utils/changelog_utils';
+import { configs } from './utils/configs';
+import { dockerHubUtils } from './utils/docker_hub_utils';
import { npmUtils } from './utils/npm_utils';
import { utils } from './utils/utils';
@@ -17,6 +19,12 @@ async function prepublishChecksAsync(): Promise<void> {
await checkChangelogFormatAsync(updatedPublicPackages);
await checkGitTagsForNextVersionAndDeleteIfExistAsync(updatedPublicPackages);
await checkPublishRequiredSetupAsync();
+ await checkDockerHubSetupAsync();
+}
+
+async function checkDockerHubSetupAsync(): Promise<void> {
+ await dockerHubUtils.checkUserAddedToOrganizationOrThrowAsync(configs.DOCKER_HUB_ORG);
+ await dockerHubUtils.loginUserToDockerCommandlineOrThrowAsync();
}
async function checkGitTagsForNextVersionAndDeleteIfExistAsync(updatedPublicPackages: Package[]): Promise<void> {