mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 13:51:19 +03:00
chore(ci): Fix wasm publish script
This commit is contained in:
parent
008e8cbd1b
commit
1900d3506e
9
.github/workflows/publish-wasm.yml
vendored
9
.github/workflows/publish-wasm.yml
vendored
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user