Skip to content

Commit

Permalink
chore: enable Yarn 4 on CI (#1525)
Browse files Browse the repository at this point in the history
* 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'
  • Loading branch information
mdjastrzebski committed Nov 13, 2023
1 parent 817d4ed commit 80e64cf
Show file tree
Hide file tree
Showing 8 changed files with 1,805 additions and 7 deletions.
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

0 comments on commit 80e64cf

Please sign in to comment.