Skip to content

chore: enable Yarn 4 on CI #1525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/actions/setup-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 5 additions & 3 deletions .github/actions/setup-website-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ build
# Ignore lock files in examples for now
examples/**/yarn.lock
.docusaurus

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.1.cjs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
enableGlobalCache: true

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.1.cjs
893 changes: 893 additions & 0 deletions website/.yarn/releases/yarn-4.0.1.cjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions website/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarnPath: .yarn/releases/yarn-4.0.1.cjs