Add workaround for wasm-pack bug to fix the playground CI (#1861)

Fixes #1860.
This commit is contained in:
Martin Fischer 2023-01-14 04:46:51 +01:00 committed by GitHub
parent 22341c4ae4
commit 156e09536e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ jobs:
- uses: jetli/wasm-pack-action@v0.4.0 - uses: jetli/wasm-pack-action@v0.4.0
- uses: jetli/wasm-bindgen-action@v0.2.0 - uses: jetli/wasm-bindgen-action@v0.2.0
- name: "Run wasm-pack" - name: "Run wasm-pack"
run: wasm-pack build --target web --out-dir playground/src/pkg run: ln -s . ruff # HACK because `wasm-pack build` doesn't support our crate structure (see https://github.com/rustwasm/wasm-pack/issues/1211)
run: wasm-pack build --target web --out-dir playground/src/pkg -p ruff
- name: "Install Node dependencies" - name: "Install Node dependencies"
run: npm ci run: npm ci
working-directory: playground working-directory: playground