ci: use threeal/yarn-install-action in workflows (#128)

This commit is contained in:
Alfi Maulana 2023-12-13 12:07:33 +07:00 committed by GitHub
parent 423b7a9d0b
commit b2c084d652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 28 deletions

View File

@ -17,17 +17,8 @@ jobs:
with:
node-version: latest
- name: Enable Yarn
run: corepack enable yarn
- name: Cache Dependencies
uses: actions/cache@v3.3.2
with:
path: .yarn
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install Dependencies
run: yarn install
uses: threeal/yarn-install-action@v1.0.0
- name: Build Package
run: yarn build && git diff --exit-code HEAD

View File

@ -17,21 +17,12 @@ jobs:
with:
node-version: latest
- name: Enable Yarn
run: corepack enable yarn
- name: Install Dependencies
uses: threeal/yarn-install-action@v1.0.0
- name: Check Yarn Version
run: yarn set version stable && git diff --exit-code HEAD
- name: Cache Dependencies
uses: actions/cache@v3.3.2
with:
path: .yarn
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install Dependencies
run: yarn install
- name: Check Format
run: yarn format && git diff --exit-code HEAD
@ -50,14 +41,8 @@ jobs:
with:
node-version: latest
- name: Cache Dependencies
uses: actions/cache@v3.3.2
with:
path: .yarn
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install Dependencies
run: corepack enable && yarn install
uses: threeal/yarn-install-action@v1.0.0
- name: Test Package
run: yarn test