From 62b8387873ce0345a99536d625f782cac1cf5407 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Sun, 4 Aug 2024 22:04:25 +0200 Subject: [PATCH] fix: don't block CLI in CI --- src/stores/settings.store.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stores/settings.store.ts b/src/stores/settings.store.ts index 795bdb0..c3a8f1a 100644 --- a/src/stores/settings.store.ts +++ b/src/stores/settings.store.ts @@ -11,6 +11,7 @@ import type Conf from 'conf'; import {yellow} from 'kleur'; import {askForPassword} from '../services/cli.settings.services'; import {loadConfig} from '../utils/config.utils'; +import { isProcessToken } from "../utils/process.utils"; class SettingsStore { readonly #config: Conf; @@ -22,6 +23,10 @@ class SettingsStore { static async init(): Promise { const store = new SettingsStore(getSettingsConfig()); + if (isProcessToken()) { + return store; + } + if (nonNullish(store.config.get('encryption'))) { return store; }