diff --git a/.github/workflows/publish-npm-package.yml b/.github/workflows/publish-npm-package.yml index 021286899f32..b66c24e6d0f1 100644 --- a/.github/workflows/publish-npm-package.yml +++ b/.github/workflows/publish-npm-package.yml @@ -104,7 +104,11 @@ jobs: unset CC_x86_64_unknown_linux_gnu && unset CC && RUSTFLAGS='-C target-feature=+sse2' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-unknown-linux-gnu && rm -rf ../../bindings/target/target/x86_64-unknown-linux-gnu/release/.cargo-lock && cp ../../bindings/target/x86_64-unknown-linux-gnu/release/swc . && chmod +x ./swc && - yarn build --target x86_64-unknown-linux-gnu + if [[ ${{ inputs.package }} == "core" ]]; then + yarn build --target x86_64-unknown-linux-gnu --no-default-features --features swc_v1 + else + yarn build --target x86_64-unknown-linux-gnu + fi - host: ubuntu-latest target: x86_64-unknown-linux-musl # musl build is slow, let's disable the LTO