Skip to content

Commit

Permalink
ci: Try fix nodejs CI (#5643)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Feb 19, 2025
1 parent 799d1b2 commit af7cd0c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci_bindings_nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
cache-dependency-path: "bindings/nodejs/pnpm-lock.yaml"

- name: Corepack
run: npm i -g --force corepack && corepack enable
run: npm i -g --force corepack@latest && corepack enable

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
-e NAPI_TARGET=x86_64-unknown-linux-gnu \
-w /build/bindings/nodejs \
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian \
bash -c "npm i -g --force corepack && corepack enable && pnpm build"
bash -c "npm i -g --force corepack@latest && corepack enable && pnpm build"
cd bindings/nodejs
# change owner to current user
sudo chown -R 1001:121 *.node
Expand All @@ -112,7 +112,7 @@ jobs:
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 \
bash -c "set -e &&
rustup target add aarch64-unknown-linux-gnu &&
npm i -g --force corepack &&
npm i -g --force corepack@latest &&
corepack enable &&
pnpm build --target aarch64-unknown-linux-gnu &&
aarch64-unknown-linux-gnu-strip *.node"
Expand All @@ -128,7 +128,7 @@ jobs:
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine \
bash -c "set -e &&
rustup target add aarch64-unknown-linux-musl &&
npm i -g --force corepack &&
npm i -g --force corepack@latest &&
corepack enable &&
pnpm build --target aarch64-unknown-linux-musl &&
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node"
Expand All @@ -148,7 +148,7 @@ jobs:
cache: pnpm
cache-dependency-path: "bindings/nodejs/pnpm-lock.yaml"
- name: Corepack
run: npm i -g --force corepack && corepack enable
run: npm i -g --force corepack@latest && corepack enable
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
cache: pnpm
cache-dependency-path: "bindings/nodejs/pnpm-lock.yaml"
- name: Corepack
run: npm i -g --force corepack && corepack enable
run: npm i -g --force corepack@latest && corepack enable
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
cache: pnpm
cache-dependency-path: "bindings/nodejs/pnpm-lock.yaml"
- name: Corepack
run: corepack enable
run: npm i -g --force corepack@latest && corepack enable
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
Expand Down Expand Up @@ -288,7 +288,7 @@ jobs:
cache: pnpm
cache-dependency-path: "bindings/nodejs/pnpm-lock.yaml"
- name: Corepack
run: npm i -g --force corepack && corepack enable
run: npm i -g --force corepack@latest && corepack enable
- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down

0 comments on commit af7cd0c

Please # to comment.