Skip to content

Commit 6adf202

Browse files
committed
Download wasm-pack directly in CI workflow
1 parent d821da4 commit 6adf202

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/playwright.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ jobs:
2323
cache: 'npm'
2424

2525
- name: Install wasm-pack
26-
uses: jetli/wasm-pack-action@v0.4.0
26+
run: |
27+
FOLDER=wasm-pack-v0.15.0-x86_64-unknown-linux-musl
28+
BINARY=wasm-pack
29+
TARGET_FOLDER=~/.cargo/bin
30+
curl -LO "https://github.com/wasm-bindgen/wasm-pack/releases/download/v0.15.0/${FOLDER}.tar.gz"
31+
tar -xzf "${FOLDER}.tar.gz"
32+
mkdir -p "${TARGET_FOLDER}"
33+
mv "${FOLDER}/${BINARY}" "${TARGET_FOLDER}/${BINARY}"
2734
2835
- name: Install dependencies
2936
run: npm ci

0 commit comments

Comments
 (0)