Skip to content

Update Yarn to v4 #2220

Update Yarn to v4

Update Yarn to v4 #2220

Workflow file for this run

name: check_ts
on:
push:
paths-ignore:
- "./proto/**.proto"
workflow_call:
workflow_dispatch:
defaults:
run:
working-directory: ./client
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --immutable
- run: yarn run check
- run: yarn run lint
- run: yarn run build