From a6808a8e8b584358c09d0a4ced6cb8206e1f97af Mon Sep 17 00:00:00 2001 From: Anssi Juvonen Date: Fri, 13 Dec 2024 20:46:27 +0200 Subject: [PATCH] Use separate mode for CI --- .github/workflows/ci.yml | 2 +- package.json | 1 + src/components/ToastMessage.vue | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 768aebc..fed5549 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: - name: Install dependencies run: npm ci - name: Build - run: npm run build + run: npm run build:ci - name: Cache Playwright browsers uses: actions/cache@v4 with: diff --git a/package.json b/package.json index c99c665..0f5788c 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite", "build": "run-p type-check \"build-only -- {@}\" -- --mode staging", + "build:ci": "run-p type-check \"build-only -- {@}\" -- --mode ci", "build:production": "run-p type-check \"build-only -- {@}\" -- --base=/", "preview": "vite preview", "test:unit": "vitest", diff --git a/src/components/ToastMessage.vue b/src/components/ToastMessage.vue index eec6817..45c2a49 100644 --- a/src/components/ToastMessage.vue +++ b/src/components/ToastMessage.vue @@ -10,7 +10,7 @@ defineProps<{ const emit = defineEmits(['close']); const toastMessage = ref(null); -const toastTimeout = import.meta.env.MODE === 'staging' ? 100 : 5500; +const toastTimeout = import.meta.env.MODE === 'ci' ? 100 : 5500; const {start, stop} = useTimeout(toastTimeout, { callback: () => emit('close'), controls: true,