Skip to content

Commit 04458a7

Browse files
Use corepack to verify yarn version
1 parent e71a960 commit 04458a7

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v5
1616

17+
- name: Enable corepack
18+
run: corepack enable
19+
1720
- name: Set up Node.js
1821
uses: actions/setup-node@v5
1922
with:
2023
cache: yarn
2124
node-version-file: .nvmrc
2225

23-
- name: Enable corepack
24-
run: corepack enable
25-
26-
- name: Set Yarn version
27-
run: yarn set version stable
28-
2926
- name: Yarn Install
3027
run: yarn
3128

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

17+
- name: Enable corepack
18+
run: corepack enable
19+
1720
- name: Set up Node.js
1821
uses: actions/setup-node@v5
1922
with:
2023
cache: yarn
2124
node-version-file: .nvmrc
2225

23-
- name: Enable corepack
24-
run: corepack enable
25-
26-
- name: Set Yarn version
27-
run: yarn set version stable
28-
2926
- name: Yarn Install
3027
run: yarn
3128

.github/workflows/storybook.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,15 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16+
- name: Enable corepack
17+
run: corepack enable
18+
1619
- name: Set up Node.js
1720
uses: actions/setup-node@v5
1821
with:
1922
cache: yarn
2023
node-version-file: .nvmrc
2124

22-
- name: Enable corepack
23-
run: corepack enable
24-
25-
- name: Set Yarn version
26-
run: yarn set version stable
27-
2825
- name: Yarn Install
2926
run: yarn install
3027

0 commit comments

Comments
 (0)