mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 04:47:03 +03:00
chore: Use ./scripts/build.sh
if exists for Wasm
This commit is contained in:
parent
6a4c1d379f
commit
a4c313a14b
7
.github/workflows/publish-npm-package.yml
vendored
7
.github/workflows/publish-npm-package.yml
vendored
@ -631,7 +631,12 @@ jobs:
|
||||
- name: Build
|
||||
working-directory: bindings/${{ matrix.settings.crate }}
|
||||
run: |
|
||||
wasm-pack build --out-name wasm --release --scope=swc --target ${{ matrix.settings.target }}
|
||||
# If ./scripts/build.sh exists, apply it
|
||||
if [ -f ./scripts/build.sh ]; then
|
||||
./scripts/build.sh
|
||||
else
|
||||
wasm-pack build --out-name wasm --release --scope=swc --target ${{ matrix.settings.target }}
|
||||
fi
|
||||
sed -i -e 's/"name": "@swc\/${{ matrix.settings.crate }}"/"name": "${{ matrix.settings.npm }}"/g' pkg/package.json
|
||||
|
||||
- name: Publish
|
||||
|
Loading…
Reference in New Issue
Block a user