Skip to content

Commit 54217a6

Browse files
committed
CI: use production release of Svelte 5 by default
1 parent b5e0f3d commit 54217a6

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
- { node: '20', svelte: '4', check: 'lint' }
3636
# `SvelteComponent` is not generic in Svelte 3, so type-checking only passes in >= 4
3737
- { node: '20', svelte: '4', check: 'types:legacy' }
38-
- { node: '20', svelte: 'next', check: 'types' }
38+
- { node: '20', svelte: '5', check: 'types' }
3939
# Only run Svelte 5 checks on latest Node
40-
- { node: '20', svelte: 'next', check: 'test:vitest:jsdom' }
41-
- { node: '20', svelte: 'next', check: 'test:vitest:happy-dom' }
42-
- { node: '20', svelte: 'next', check: 'test:jest' }
40+
- { node: '20', svelte: '5', check: 'test:vitest:jsdom' }
41+
- { node: '20', svelte: '5', check: 'test:vitest:happy-dom' }
42+
- { node: '20', svelte: '5', check: 'test:jest' }
4343

4444
steps:
4545
- name: ⬇️ Checkout repo
@@ -53,7 +53,10 @@ jobs:
5353
- name: 📥 Download deps
5454
run: |
5555
npm install --no-package-lock
56-
npm install --no-save svelte@${{ matrix.svelte }}
56+
npm install --no-save svelte@${SVELTE_VERSION} @sveltejs/vite-plugin-svelte@${VITE_PLUGIN_VERSION}
57+
env:
58+
SVELTE_VERSION: ${{ matrix.svelte }}
59+
VITE_PLUGIN_VERSION: ${{ matrix.svelte == '5' && '4' || '3' }}
5760

5861
- name: ▶️ Run ${{ matrix.check }}
5962
run: npm run ${{ matrix.check }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
},
9696
"devDependencies": {
9797
"@jest/globals": "^29.7.0",
98-
"@sveltejs/vite-plugin-svelte": "^3.1.1",
98+
"@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0",
9999
"@testing-library/jest-dom": "^6.3.0",
100100
"@testing-library/user-event": "^14.5.2",
101101
"@typescript-eslint/eslint-plugin": "^8.0.0",
@@ -111,7 +111,7 @@
111111
"eslint-plugin-promise": "^6.4.0",
112112
"eslint-plugin-simple-import-sort": "^12.1.1",
113113
"eslint-plugin-svelte": "^2.42.0",
114-
"expect-type": "^0.20.0",
114+
"expect-type": "^1.1.0",
115115
"happy-dom": "^15.7.3",
116116
"jest": "^29.7.0",
117117
"jest-environment-jsdom": "^29.7.0",

0 commit comments

Comments
 (0)