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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 7 deletions

View File

@ -17,10 +17,12 @@ jobs:
with: with:
node-version: latest node-version: latest
- name: Install Dependencies - name: Setup Yarn
uses: threeal/yarn-install-action@v2.0.0 uses: threeal/setup-yarn-action@v2.0.0
with:
version: stable
- name: Build Package - name: Build Package
run: | run: |
corepack yarn build yarn build
git diff --exit-code HEAD git diff --exit-code HEAD

View File

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