chore(ci): Fix wasm publish script

This commit is contained in:
Donny/강동윤 2022-04-16 08:18:38 +09:00
parent 008e8cbd1b
commit 1900d3506e

View File

@ -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: |