From 1afc1f6198e7f5c7e50141f93cad8b37d546ddd9 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sun, 3 Mar 2024 17:42:41 +0700 Subject: [PATCH] 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 --- .github/workflows/build.yaml | 8 +++++--- .github/workflows/test.yaml | 10 ++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index add40a4..16dbd63 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,10 +17,12 @@ 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: Build Package run: | - corepack yarn build + yarn build git diff --exit-code HEAD diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3755e53..bfa67c4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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