diff --git a/.github/workflows/publish-wasm.yml b/.github/workflows/publish-wasm.yml index 667faa12457..ba56222739e 100644 --- a/.github/workflows/publish-wasm.yml +++ b/.github/workflows/publish-wasm.yml @@ -39,7 +39,7 @@ jobs: run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Build - run: (cd crates/binding_core_wasm && wasm-pack build --release --scope=swc --target nodejs) + run: (cd crates/binding_core_wasm && wasm-pack build --out-name wasm --release --scope=swc --target nodejs) - name: Publish run: | @@ -77,12 +77,7 @@ jobs: run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Build - run: (cd crates/binding_core_wasm && wasm-pack build --release --scope=swc --target web) - - - name: Rename - run: | - sed -i'' -e 's/"name": "@swc\/wasm"/"name": "@swc\/wasm-web"/g' package.json - working-directory: crates/binding_core_wasm/pkg + run: (cd crates/binding_core_wasm && wasm-pack build --out-name wasm-web --release --scope=swc --target web) - name: Publish run: |