Skip to content

Commit 5c0b572

Browse files
committed
fix ci
1 parent cb83f02 commit 5c0b572

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/NodeCI.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ jobs:
6969
working-directory: ${{ env.project_root_path }}
7070
- name: Install ESLint ${{ matrix.eslint }}
7171
if: matrix.eslint != 9
72-
# Hack: Install `eslint-plugin-svelte` is necessary for `packages/eslint-plugin-svelte/tests/src/configs` tests.
73-
run: pnpm install -D eslint@${{ matrix.eslint }} eslint-plugin-svelte
74-
working-directory: ${{ env.project_root_path }}
72+
run: pnpm install -D -w eslint@${{ matrix.eslint }}
7573

7674
- name: Test
77-
run: pnpm run test
75+
run: pnpm test
7876
working-directory: ${{ env.project_root_path }}
7977

8078
test-for-svelte-v4:
@@ -110,7 +108,7 @@ jobs:
110108
run: |
111109
pnpm install -D eslint@${{ matrix.eslint }}
112110
rm -rf node_modules
113-
working-directory: ${{ env.project_root_path }}
111+
working-directory: ${{ env.project_root_path }}
114112
- name: Install Packages
115113
run: pnpm install
116114
- name: Test
@@ -138,7 +136,7 @@ jobs:
138136
cd docs-svelte-kit
139137
pnpm rm @sveltejs/kit
140138
cd ../packages/eslint-plugin-svelte
141-
pnpm install -D svelte@3 @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5 eslint@8
139+
pnpm install -D -w svelte@3 @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5 eslint@8
142140
rm -rf packages/eslint-plugin-svelte/node_modules
143141
rm -rf docs-svelte-kit/node_modules
144142
rm -rf node_modules
@@ -165,9 +163,8 @@ jobs:
165163
node-version: ${{ matrix.node }}
166164
- name: Install typescript-eslint v5
167165
run: |
168-
pnpm install -D @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5
166+
pnpm install -D -w @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5
169167
rm -rf node_modules
170-
working-directory: ${{ env.project_root_path }}
171168
- name: Install Packages
172169
run: pnpm install
173170
- name: Test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"eslint-plugin-regexp": "^2.5.0",
3636
"eslint-plugin-yml": "^1.14.0",
3737
"npm-run-all2": "^6.2.0",
38-
"rimraf": "^5.0.7",
3938
"prettier": "^3.2.5",
4039
"prettier-plugin-svelte": "^3.2.3",
40+
"rimraf": "^5.0.7",
4141
"typescript": "~5.4.5",
4242
"typescript-eslint": "^7.9.0"
4343
},

0 commit comments

Comments
 (0)