Skip to content

Commit 0d5f10b

Browse files
committed
chore: FIx publish path
1 parent 2edbd40 commit 0d5f10b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/publish-npm-package.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
build: |
7575
if [[ ${{ inputs.package }} == "core" ]]; then
7676
cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-apple-darwin
77-
cp ../../bindings/target/x86_64-apple-darwin/release/swc .
77+
cp ../../target/x86_64-apple-darwin/release/swc .
7878
chmod +x ./swc
7979
fi
8080
yarn build --target x86_64-apple-darwin
@@ -85,7 +85,7 @@ jobs:
8585
yarn build --target x86_64-pc-windows-msvc
8686
if [[ ${{ inputs.package }} == "core" ]]; then
8787
cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-pc-windows-msvc
88-
cp ../../bindings/target/x86_64-pc-windows-msvc/release/swc .
88+
cp ../../target/x86_64-pc-windows-msvc/release/swc .
8989
fi
9090
target: x86_64-pc-windows-msvc
9191
- host: windows-latest
@@ -95,7 +95,7 @@ jobs:
9595
export CARGO_PROFILE_RELEASE_LTO=false
9696
if [[ ${{ inputs.package }} == "core" ]]; then
9797
cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --target i686-pc-windows-msvc
98-
cp ../../bindings/target/i686-pc-windows-msvc/release/swc .
98+
cp ../../target/i686-pc-windows-msvc/release/swc .
9999
yarn build --target i686-pc-windows-msvc --no-default-features --features swc_v1
100100
else
101101
yarn build --target i686-pc-windows-msvc
@@ -107,8 +107,8 @@ jobs:
107107
build: >-
108108
set -e &&
109109
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 &&
110-
rm -rf ../../bindings/target/target/x86_64-unknown-linux-gnu/release/.cargo-lock &&
111-
cp ../../bindings/target/x86_64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
110+
rm -rf ../../target/target/x86_64-unknown-linux-gnu/release/.cargo-lock &&
111+
cp ../../target/x86_64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
112112
if [[ ${{ inputs.package }} == "core" ]]; then
113113
yarn build --target x86_64-unknown-linux-gnu --no-default-features --features swc_v1,plugin
114114
else
@@ -129,7 +129,7 @@ jobs:
129129
if [[ ${{ inputs.package }} == "core" ]]; then
130130
RUSTFLAGS='-C target-feature=+sse2' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target x86_64-unknown-linux-musl &&
131131
rm -rf target/release/.cargo-lock &&
132-
cp ../../bindings/target/x86_64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
132+
cp ../../target/x86_64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
133133
RUSTFLAGS='-C target-feature=+sse2 -C target-feature=-crt-static' yarn build --target x86_64-unknown-linux-musl
134134
else
135135
RUSTFLAGS='-C target-feature=+sse2 -C target-feature=-crt-static' yarn build --target x86_64-unknown-linux-musl
@@ -144,7 +144,7 @@ jobs:
144144
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
145145
if [[ ${{ inputs.package }} == "core" ]]; then
146146
cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-apple-darwin
147-
cp ../../bindings/target/aarch64-apple-darwin/release/swc .
147+
cp ../../target/aarch64-apple-darwin/release/swc .
148148
chmod +x ./swc
149149
fi
150150
yarn build --target aarch64-apple-darwin
@@ -157,7 +157,7 @@ jobs:
157157
rustup target add aarch64-unknown-linux-gnu &&
158158
if [[ ${{ inputs.package }} == "core" ]]; then
159159
RUSTFLAGS='' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-unknown-linux-gnu &&
160-
cp ../../bindings/target/aarch64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
160+
cp ../../target/aarch64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
161161
export CC_aarch64_unknown_linux_gnu=clang &&
162162
yarn build --target aarch64-unknown-linux-gnu
163163
else
@@ -191,7 +191,7 @@ jobs:
191191
if [[ ${{ inputs.package }} == "core" ]]; then
192192
RUSTFLAGS='-C target-feature=+crt-static -C link-arg=-lgcc' cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-unknown-linux-musl &&
193193
rm -rf target/release/.cargo-lock &&
194-
cp ../../bindings/target/aarch64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
194+
cp ../../target/aarch64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
195195
env RUSTFLAGS='-C target-feature=-crt-static' yarn build --target=aarch64-unknown-linux-musl
196196
else
197197
env RUSTFLAGS='-C target-feature=-crt-static' yarn build --target=aarch64-unknown-linux-musl
@@ -205,7 +205,7 @@ jobs:
205205
export CARGO_PROFILE_RELEASE_LTO=false
206206
if [[ ${{ inputs.package }} == "core" ]]; then
207207
cargo build --manifest-path ../../bindings/swc_cli/Cargo.toml --release --target aarch64-pc-windows-msvc
208-
cp ../../bindings/target/aarch64-pc-windows-msvc/release/swc.exe .
208+
cp ../../target/aarch64-pc-windows-msvc/release/swc.exe .
209209
yarn build --target aarch64-pc-windows-msvc --no-default-features --features swc_v1
210210
else
211211
yarn build --target aarch64-pc-windows-msvc

0 commit comments

Comments
 (0)