Skip to content

Commit 56af60f

Browse files
authored
build: upgrade to Yarn v4 (#884)
* build: upgrade to Yarn v4 * add corepack sha
1 parent 37ed980 commit 56af60f

10 files changed

Lines changed: 21626 additions & 14876 deletions

File tree

.github/workflows/check-blog-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
node-version-file: '.nvmrc'
2222
cache: 'yarn'
2323
- name: Install dependencies
24-
run: yarn install --frozen-lockfile
24+
run: yarn install --immutable
2525
- name: Check blog post links
2626
env:
2727
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
node-version-file: '.nvmrc'
2121
cache: 'yarn'
2222
- name: Install dependencies
23-
run: yarn install --frozen-lockfile
23+
run: yarn install --immutable
2424

2525
- name: Lint
2626
run: yarn lint

.github/workflows/push-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
node-version-file: '.nvmrc'
2424
cache: 'yarn'
2525
- name: Install dependencies
26-
run: yarn install --frozen-lockfile
26+
run: yarn install --immutable
2727
- name: Upload sources to Crowdin
2828
run: 'yarn i18n:upload'
2929
env:
@@ -48,7 +48,7 @@ jobs:
4848
node-version-file: '.nvmrc'
4949
cache: 'yarn'
5050
- name: Install dependencies
51-
run: yarn install --frozen-lockfile
51+
run: yarn install --immutable
5252
- name: Lint
5353
run: yarn lint
5454
env:

.github/workflows/update-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
node-version-file: '.nvmrc'
3535
cache: 'yarn'
3636
- name: Install dependencies
37-
run: yarn install --frozen-lockfile
37+
run: yarn install --immutable
3838
- name: Prebuild
3939
run: |
4040
yarn pre-build ${SHA}

.github/workflows/update-i18n-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
node-version-file: '.nvmrc'
2222
cache: 'yarn'
2323
- name: Install dependencies
24-
run: yarn install --frozen-lockfile
24+
run: yarn install --immutable
2525

2626
- name: Download Crowdin translation
2727
run: yarn i18n:download

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ i18n/*
1010
!i18n/en/
1111
!i18n/README.md
1212
docs/v**
13+
14+
# yarn v4
15+
.pnp.*
16+
.yarn/*
17+
!.yarn/patches
18+
!.yarn/plugins
19+
!.yarn/releases
20+
!.yarn/sdks
21+
!.yarn/versions

.yarn/releases/yarn-4.10.3.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
enableScripts: false
2+
3+
nodeLinker: node-modules
4+
5+
npmMinimalAgeGate: 10080
6+
7+
npmPreapprovedPackages:
8+
- '@electron/*'
9+
10+
yarnPath: .yarn/releases/yarn-4.10.3.cjs

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,10 @@
123123
"http-cache-semantics": "4.1.1",
124124
"markdownlint-cli2/micromatch": "4.0.8"
125125
},
126-
"packageManager": "yarn@1.22.19"
126+
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f",
127+
"dependenciesMeta": {
128+
"@swc/core": {
129+
"built": true
130+
}
131+
}
127132
}

0 commit comments

Comments
 (0)