ci: utilize Setup Yarn Berry Action (#217)

* ci: replace `yarn-install-action` with `setup-yarn-action`

* ci: replace `corepack yarn` command with `yarn` command

* ci: setup Yarn to stable version
This commit is contained in:
Alfi Maulana
2024-03-03 17:42:41 +07:00
committed by GitHub
parent ae2cfe2220
commit 1afc1f6198
2 changed files with 11 additions and 7 deletions

View File

@@ -17,16 +17,18 @@ jobs:
with:
node-version: latest
- name: Install Dependencies
uses: threeal/yarn-install-action@v2.0.0
- name: Setup Yarn
uses: threeal/setup-yarn-action@v2.0.0
with:
version: stable
- name: Check Format
run: |
corepack yarn format
yarn format
git diff --exit-code HEAD
- name: Check Lint
run: corepack yarn lint
run: yarn lint
test-action:
name: Test Action