chore: enable Yarn 4 on CI (#1525)

* chore: enable Yarn 4 on CI (attempt 1)

* chore: attempt 2

* chore: attempt 3

* chore: attempt 4

* chore: attempt 5

* chore: fix website

* chore: fix attempt 6'
This commit is contained in:
Maciej Jastrzebski
2023-11-13 17:29:36 +01:00
committed by GitHub
parent 817d4edb75
commit 80e64cff56
8 changed files with 1805 additions and 7 deletions
+8 -3
View File
@@ -7,14 +7,19 @@ runs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc
- name: Cache deps
id: yarn-cache
uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
path: |
./node_modules
.yarn/install-state.gz
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-yarn-
- name: Install deps
if: steps.yarn-cache.outputs.cache-hit != 'true'
@@ -7,14 +7,16 @@ runs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc
- name: Cache website deps
id: yarn-cache-website
uses: actions/cache@v3
with:
path: ./website/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}-website
path: |
./website/node_modules
./website/yarn/install-state.gz
key: website-${{ runner.os }}-yarn-${{ hashFiles('./website/yarn.lock') }}
- name: Install website deps
if: steps.yarn-cache-website.outputs.cache-hit != 'true'
-1
View File
@@ -19,4 +19,3 @@ build
# Ignore lock files in examples for now
examples/**/yarn.lock
.docusaurus
+1
View File
@@ -0,0 +1 @@
lts/*
+893
View File
File diff suppressed because one or more lines are too long
+4
View File
@@ -1 +1,5 @@
enableGlobalCache: true
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.0.1.cjs
+893
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
yarnPath: .yarn/releases/yarn-4.0.1.cjs