Skip to content

Commit

Permalink
Use separate mode for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Dec 13, 2024
1 parent 20323fb commit a6808a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ToastMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defineProps<{
const emit = defineEmits(['close']);
const toastMessage = ref<HTMLDivElement | null>(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,
Expand Down

0 comments on commit a6808a8

Please sign in to comment.