You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2025/02/19 04:58:35 UTC

(opendal) branch main updated: ci: Try fix nodejs CI (#5643)

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new af7cd0cbd ci: Try fix nodejs CI (#5643)
af7cd0cbd is described below

commit af7cd0cbd8a413752566cf541ec22bf7d5251047
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Wed Feb 19 12:58:30 2025 +0800

    ci: Try fix nodejs CI (#5643)
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 .github/workflows/ci_bindings_nodejs.yml | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/ci_bindings_nodejs.yml b/.github/workflows/ci_bindings_nodejs.yml
index 52cf61fe2..80cffaaa5 100644
--- a/.github/workflows/ci_bindings_nodejs.yml
+++ b/.github/workflows/ci_bindings_nodejs.yml
@@ -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
@@ -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
@@ -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"
@@ -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"
@@ -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
@@ -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
@@ -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
@@ -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