Skip to content

Commit 3e590b3

Browse files
committed
chore: set yarn berry in workflows
1 parent 3fa97b3 commit 3e590b3

10 files changed

+33
-0
lines changed

.github/workflows/accessibility_scan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1717
with:
1818
node-version: 20.x
19+
- name: Set Yarn Berry
20+
uses: ./.github/workflows/set_yarn_berry.yml
1921
- name: Install dependencies
2022
run: yarn
2123
- name: Build

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1717
with:
1818
node-version: 20.x
19+
- name: Set Yarn Berry
20+
uses: ./.github/workflows/set_yarn_berry.yml
1921
- name: Install Dependencies
2022
run: yarn
2123
- name: Run tests

.github/workflows/check_bundle_size.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1818
with:
1919
node-version: 20.x
20+
- name: Set Yarn Berry
21+
uses: ./.github/workflows/set_yarn_berry.yml
2022
- name: Install dependencies
2123
run: yarn
2224
- name: Run build and analyze base bundle sizes
@@ -41,6 +43,8 @@ jobs:
4143
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
4244
with:
4345
node-version: 20.x
46+
- name: Set Yarn Berry
47+
uses: ./.github/workflows/set_yarn_berry.yml
4448
- name: Install dependencies
4549
run: yarn
4650
- name: Run build and analyze head bundle sizes

.github/workflows/check_for_broken_links.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1717
with:
1818
node-version: 20.x
19+
- name: Set Yarn Berry
20+
uses: ./.github/workflows/set_yarn_berry.yml
1921
- name: Install Dependencies
2022
run: yarn
2123
- name: Run Link Checker

.github/workflows/check_for_console_errors.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1818
with:
1919
node-version: 20.x
20+
- name: Set Yarn Berry
21+
uses: ./.github/workflows/set_yarn_berry.yml
2022
- name: Install Dependencies
2123
run: yarn
2224
- name: Run Build

.github/workflows/check_for_new_files.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
script: |
2121
const { getAddedFiles } = require('./.github/workflows/scripts/check_for_new_files.js');
2222
return await getAddedFiles({github, context, core});
23+
- name: Set yarn Berry
24+
uses: ./.github/workflows/set_yarn_berry.yml
2325
- name: Install npm package ignore
2426
if: ${{ steps.set-added-files-count.outputs.result > 0 }}
2527
run: yarn add [email protected] -W # help verify CODEOWNERS

.github/workflows/check_pr_for_broken_links.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1616
with:
1717
node-version: 20.x
18+
- name: Set Yarn Berry
19+
uses: ./.github/workflows/set_yarn_berry.yml
1820
- name: Install Dependencies
1921
run: yarn
2022
- name: Run Build
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Set Yarn Berry
2+
3+
on: workflow_call
4+
5+
jobs:
6+
set-yarn-berry:
7+
name: Set global yarn version to berry
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Enable corepack
11+
run: corepack enable
12+
- name: Set yarn version to berry
13+
run: yarn set version berry

.github/workflows/spellcheck.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1515
with:
1616
node-version: 20.x
17+
- name: Set Yarn Berry
18+
uses: ./.github/workflows/set_yarn_berry.yml
1719
- name: Install Dependencies
1820
run: yarn
1921
- name: Run Spellcheck

.github/workflows/validate_redirects.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1818
with:
1919
node-version: 20.x
20+
- name: Set Yarn Berry
21+
uses: ./.github/workflows/set_yarn_berry.yml
2022
- name: Install Dependencies
2123
run: yarn
2224
- name: Validate redirects

0 commit comments

Comments
 (0)