Skip to content

Commit e5c9132

Browse files
committed
chore: Update yarn to v4 and add Yarn v4 installation step
- Update the yarn version to v4 in the dependencies setup action.yml file - Add a new step to install Yarn v4 using corepack in the dependencies setup action.yml file - Update the lint and type-check commands in the boilerplate-checks.yml file to use the correct yarn scripts - Add a new step to run Prettier code formatting in the boilerplate-checks.yml file
1 parent 14c9153 commit e5c9132

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/actions/deps-setup/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ runs:
1313
node-version: '20.x'
1414
cache: 'yarn'
1515
cache-dependency-path: ${{ inputs.working_directory }}/yarn.lock
16+
- name: Install Yarn v4
17+
shell: bash
18+
run: corepack enable && corepack prepare [email protected] --activate
1619
- name: Install dependencies
1720
run: yarn install --frozen-lockfile
1821
shell: bash

.github/workflows/boilerplate-checks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ jobs:
2424
with:
2525
working_directory: ./template
2626
- name: Run Eslint
27-
run: yarn lint
27+
run: yarn lint:coventions
28+
working-directory: ./template
29+
- name: Run Prettier
30+
run: yarn lint:code-format
2831
working-directory: ./template
2932
- name: Run Typescript check
30-
run: yarn type-check
33+
run: yarn lint:type-check
3134
working-directory: ./template
3235
- name: Run Jest tests
3336
run: yarn test

0 commit comments

Comments
 (0)