Skip to content

Commit c38b730

Browse files
committed
fix ci
1 parent cb83f02 commit c38b730

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.github/workflows/NodeCI.yml

Lines changed: 5 additions & 15 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:
@@ -108,9 +106,8 @@ jobs:
108106
working-directory: ${{ env.project_root_path }}
109107
- name: Install ESLint ${{ matrix.eslint }}
110108
run: |
111-
pnpm install -D eslint@${{ matrix.eslint }}
109+
pnpm install -D -w eslint@${{ matrix.eslint }}
112110
rm -rf node_modules
113-
working-directory: ${{ env.project_root_path }}
114111
- name: Install Packages
115112
run: pnpm install
116113
- name: Test
@@ -133,14 +130,8 @@ jobs:
133130
with:
134131
node-version: ${{ matrix.node }}
135132
- name: Install svelte@3
136-
# Remove @sveltejs/kit because postinstall fails on old node.
137133
run: |
138-
cd docs-svelte-kit
139-
pnpm rm @sveltejs/kit
140-
cd ../packages/eslint-plugin-svelte
141-
pnpm install -D svelte@3 @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5 eslint@8
142-
rm -rf packages/eslint-plugin-svelte/node_modules
143-
rm -rf docs-svelte-kit/node_modules
134+
pnpm install -D -w svelte@3 @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5 eslint@8
144135
rm -rf node_modules
145136
- name: Install Packages
146137
run: pnpm install
@@ -165,9 +156,8 @@ jobs:
165156
node-version: ${{ matrix.node }}
166157
- name: Install typescript-eslint v5
167158
run: |
168-
pnpm install -D @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5
159+
pnpm install -D -w @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5
169160
rm -rf node_modules
170-
working-directory: ${{ env.project_root_path }}
171161
- name: Install Packages
172162
run: pnpm install
173163
- 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)