mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
chore: Fix wasm publish script
This commit is contained in:
parent
4f7778930e
commit
234e380580
10
.github/workflows/publish-wasm.yml
vendored
10
.github/workflows/publish-wasm.yml
vendored
@ -39,7 +39,10 @@ jobs:
|
|||||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||||
|
|
||||||
- name: Build
|
- 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
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
@ -77,7 +80,10 @@ jobs:
|
|||||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||||
|
|
||||||
- name: Build
|
- 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
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user