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,