Release 0.9.2: install the wasm-bindgen CLI for the web release build
The shared release workflow installs trunk, but EffectCraft's web build runs the wasm-bindgen CLI directly (cargo xtask web), so the Web job fails with "wasm-bindgen CLI not found". In CI, package.sh now installs the CLI at xtask's WASM_BINDGEN version, as the per-app release.yml did before the move to craft-common-actions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e2f314f753
commit
470ea7a3af
@@ -12,6 +12,14 @@ set -euo pipefail
|
||||
HERE="$ROOT/packaging/web"
|
||||
|
||||
if [ "${1:-}" != "--skip-build" ]; then
|
||||
# CI (the shared release workflow installs only trunk): install the wasm-bindgen CLI at the
|
||||
# crate's exact version. Locally, `cargo xtask web` says which version to install.
|
||||
if [ -n "${CI:-}" ]; then
|
||||
WASM_BINDGEN_VERSION="$(sed -n 's/^const WASM_BINDGEN: &str = "\(.*\)";$/\1/p' "$ROOT/xtask/src/main.rs")"
|
||||
if ! { command -v wasm-bindgen >/dev/null && wasm-bindgen --version | grep -qF "$WASM_BINDGEN_VERSION"; }; then
|
||||
cargo install wasm-bindgen-cli --version "$WASM_BINDGEN_VERSION" --locked
|
||||
fi
|
||||
fi
|
||||
(cd "$ROOT" && cargo xtask web)
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user