mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 13:51:19 +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
|
||||
|
||||
- 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: |
|
||||
|
Loading…
Reference in New Issue
Block a user