Skip to content

Commit c9b5fd5

Browse files
committed
fix(ci): Fix parser build and test in CI workflow
- Download all WASM artifacts (v13-v17) for parser build - Build types packages before building parser (required for bundling) - Ensure test-parser job has all required artifacts - Fixes MODULE_NOT_FOUND error for v13/index.cjs in CI
1 parent 2177683 commit c9b5fd5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,18 @@ jobs:
163163
run: pnpm install
164164
working-directory: parser
165165

166+
- name: Download v13 WASM Artifacts πŸ“₯
167+
uses: actions/download-artifact@v4
168+
with:
169+
name: wasm-artifacts-v13
170+
path: versions/13/wasm/
171+
172+
- name: Download v14 WASM Artifacts πŸ“₯
173+
uses: actions/download-artifact@v4
174+
with:
175+
name: wasm-artifacts-v14
176+
path: versions/14/wasm/
177+
166178
- name: Download v15 WASM Artifacts πŸ“₯
167179
uses: actions/download-artifact@v4
168180
with:
@@ -181,6 +193,15 @@ jobs:
181193
name: wasm-artifacts-v17
182194
path: versions/17/wasm/
183195

196+
- name: Build Types Packages πŸ—
197+
run: |
198+
for version in 13 14 15 16 17; do
199+
echo "Building types for v${version}..."
200+
cd types/${version}
201+
pnpm run build
202+
cd ../..
203+
done
204+
184205
- name: Build Parser πŸ—
185206
run: pnpm run build
186207
working-directory: parser
@@ -234,6 +255,18 @@ jobs:
234255
run: pnpm install
235256
working-directory: parser
236257

258+
- name: Download v13 WASM Artifacts πŸ“₯
259+
uses: actions/download-artifact@v4
260+
with:
261+
name: wasm-artifacts-v13
262+
path: versions/13/wasm/
263+
264+
- name: Download v14 WASM Artifacts πŸ“₯
265+
uses: actions/download-artifact@v4
266+
with:
267+
name: wasm-artifacts-v14
268+
path: versions/14/wasm/
269+
237270
- name: Download v15 WASM Artifacts πŸ“₯
238271
uses: actions/download-artifact@v4
239272
with:

0 commit comments

Comments
Β (0)