Use yarn berry (#1726)

This commit is contained in:
Erik Michelson 2021-12-30 18:45:04 +01:00 committed by GitHub
parent 4089f0c6ed
commit 68a7546a5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 15103 additions and 10330 deletions

View file

@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn cache
uses: actions/cache@v2
id: yarn-cache
@ -36,7 +36,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline
run: yarn install --immutable
- name: Test Project
run: yarn test:ci
- name: Build project

View file

@ -28,7 +28,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
if: steps.build-cache.outputs.cache-hit != 'true'
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn cache
uses: actions/cache@v2
@ -48,7 +48,7 @@ jobs:
- name: Install dependencies
if: steps.build-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --prefer-offline
run: yarn install --immutable
- name: Build test production build
if: steps.build-cache.outputs.cache-hit != 'true'

View file

@ -20,7 +20,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn cache
uses: actions/cache@v2
@ -36,7 +36,7 @@ jobs:
with:
node-version: 16
- name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline
run: yarn install --immutable
- name: Lint code
run: yarn lint
format:
@ -48,7 +48,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn cache
uses: actions/cache@v2
@ -64,6 +64,6 @@ jobs:
with:
node-version: 16
- name: Install dependencies
run: yarn install --frozen-lockfile --prefer-offline
run: yarn install --immutable
- name: Lint code
run: yarn format