Skip to content

Commit 3e65af8

Browse files
committed
tests(workflow): use forked setup-node action which supports corepack
1 parent 67b3a44 commit 3e65af8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- name: Setup Node.js
14-
uses: actions/setup-node@v4
13+
- name: Setup node.js
14+
# yarn cache is broken without corepack support.
15+
# Using forked version from https://github.com/actions/setup-node/pull/901
16+
uses: JP250552/setup-node@aa9724272b8a9ea9fca3d51295a2cc4707e35ec2
1517
with:
16-
node-version: '22'
17-
cache: 'yarn'
18-
19-
- name: Enable corepack
20-
run: corepack enable
18+
node-version: 24
19+
cache: yarn
20+
corepack: true
2121

2222
- name: Install dependencies
2323
run: yarn install --frozen-lockfile

0 commit comments

Comments
 (0)