chore: Fix wasm publish script

This commit is contained in:
Donny/강동윤 2022-04-20 22:53:56 +09:00
parent 4f7778930e
commit 234e380580

View File

@ -39,7 +39,10 @@ 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 --out-name wasm --release --scope=swc --target nodejs)
working-directory: crates/binding_core_wasm
run: |
wasm-pack build --out-name wasm --release --scope=swc --target nodejs
sed -i -e 's/"name": "@swc\/binding_core_wasm"/"name": "@swc\/wasm"/g' pkg/package.json
- name: Publish
run: |
@ -77,7 +80,10 @@ 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 --out-name wasm-web --release --scope=swc --target web)
working-directory: crates/binding_core_wasm
run: |
wasm-pack build --out-name wasm-web --release --scope=swc --target web
sed -i -e 's/"name": "@swc\/binding_core_wasm"/"name": "@swc\/wasm-web"/g' pkg/package.json
- name: Publish
run: |