Skip to content

Commit 96d6e18

Browse files
committed
ci: use Corepack for Yarn 4.5.0 instead of latest Berry
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.
1 parent d5acef3 commit 96d6e18

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
24+
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
- run: yarn set version berry
27+
cache: yarn
28+
- name: Enable Corepack
29+
run: corepack enable
2830
- run: yarn
2931
- run: yarn build

0 commit comments

Comments
 (0)