ci: use threeal/yarn-install-action in workflows

This commit is contained in:
Alfi Maulana 2023-12-12 21:58:45 +07:00
parent 198259946b
commit 86f0ff22fd
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4
2 changed files with 4 additions and 28 deletions

View File

@ -17,17 +17,8 @@ jobs:
with: with:
node-version: latest 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 - name: Install Dependencies
run: yarn install uses: threeal/yarn-install-action@v1.0.0
- name: Build Package - name: Build Package
run: yarn build && git diff --exit-code HEAD run: yarn build && git diff --exit-code HEAD

View File

@ -17,21 +17,12 @@ jobs:
with: with:
node-version: latest node-version: latest
- name: Enable Yarn - name: Install Dependencies
run: corepack enable yarn uses: threeal/yarn-install-action@v1.0.0
- name: Check Yarn Version - name: Check Yarn Version
run: yarn set version stable && git diff --exit-code HEAD 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 - name: Check Format
run: yarn format && git diff --exit-code HEAD run: yarn format && git diff --exit-code HEAD
@ -50,14 +41,8 @@ jobs:
with: with:
node-version: latest 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 - name: Install Dependencies
run: corepack enable && yarn install uses: threeal/yarn-install-action@v1.0.0
- name: Test Package - name: Test Package
run: yarn test run: yarn test