From 7956b8baa8af5ece9f282f35d65645f1856d3911 Mon Sep 17 00:00:00 2001 From: Milan Ricoul Date: Fri, 24 Apr 2026 11:21:23 +0200 Subject: [PATCH 1/2] ci: use Corepack for Yarn 4.5.0 instead of latest Berry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace yarn set version berry with corepack enable to match packageManager and avoid lockfile v8→v9 migration blocked in PRs. Upgrade actions/setup-node to v4 with yarn cache. --- .github/workflows/node.js.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d09be165..f49f41dc 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -21,9 +21,11 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: yarn set version berry + cache: yarn + - name: Enable Corepack + run: corepack enable - run: yarn - run: yarn build From cb2625c815c4f02b7328257eb566971ca1f2580d Mon Sep 17 00:00:00 2001 From: mricoul Date: Fri, 24 Apr 2026 15:38:46 +0200 Subject: [PATCH 2/2] ci(node.js): change order of tasks --- .github/workflows/node.js.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f49f41dc..4783470a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,12 +20,14 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Enable Corepack + # Must run before setup-node's yarn cache: resolves Yarn from packageManager, not v1. + # See: https://github.com/actions/setup-node/issues/1027 + run: corepack enable - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: yarn - - name: Enable Corepack - run: corepack enable - run: yarn - run: yarn build