diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c37be0202193..4ac1ffb0de78 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -146,11 +146,10 @@ jobs: - name: Patch shell: bash - working-directory: bindings run: | - cargo install cargo-link2 - cargo link ../ - cargo update -p swc_core -p swc_fast_ts_strip + echo '[patch.crates-io]' >> bindings/Cargo.toml + ./scripts/cargo/patch-section.sh >> bindings/Cargo.toml + cd bindings && cargo update -p swc_core -p swc_fast_ts_strip - name: Install wasm-pack run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh @@ -365,11 +364,11 @@ jobs: - name: Patch shell: bash - working-directory: bindings run: | - cargo install cargo-link2 - cargo link ../ - cargo update -p swc_core -p swc_fast_ts_strip + echo '[patch.crates-io]' >> bindings/Cargo.toml + ./scripts/cargo/patch-section.sh + ./scripts/cargo/patch-section.sh >> bindings/Cargo.toml + cd bindings && cargo update -p swc_core -p swc_fast_ts_strip - name: Set platform name run: | @@ -423,11 +422,10 @@ jobs: - name: Patch shell: bash - working-directory: bindings run: | - cargo install cargo-link2 - cargo link ../ - cargo update -p swc_core -p swc_fast_ts_strip + echo '[patch.crates-io]' >> bindings/Cargo.toml + ./scripts/cargo/patch-section.sh >> bindings/Cargo.toml + cd bindings && cargo update -p swc_core -p swc_fast_ts_strip - name: Prepare run: |