Skip to content

Commit 327da92

Browse files
committed
ci: Update Yarn workflows to use corepack
1 parent af7c5a1 commit 327da92

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/eslint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- name: Use Node.js
1515
uses: actions/setup-node@v5
1616
with:
17-
node-version: "20.x"
18-
- run: yarn install
19-
- run: yarn run lint
17+
node-version: "22.x"
18+
- run: corepack enable && corepack prepare yarn@4.10.3 --activate
19+
- run: yarn install --immutable

.github/workflows/typescript.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
with:
1818
node-version: ${{ matrix.node-version }}
1919
cache: "yarn"
20-
- run: yarn install
20+
- run: corepack enable && corepack prepare [email protected] --activate
21+
- run: yarn install --immutable
2122
- run: yarn test --coverage
2223
- name: Upload coverage reports to Codecov with GitHub Action
2324
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)