Skip to content

Commit 0e939d1

Browse files
committed
build(yarn): bump yarn from 4.0.0-rc.39 to 4.0.0-rc.50
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 2bf0ef4 commit 0e939d1

File tree

7 files changed

+1961
-1927
lines changed

7 files changed

+1961
-1927
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
&& !startsWith(github.event.head_commit.message, 'release:')
5757
runs-on: ubuntu-latest
5858
outputs:
59+
cache-key: ${{ steps.cache-key.outputs.result }}
5960
version: ${{ steps.version.outputs.result }}
6061
version-typescript: ${{ steps.version-typescript.outputs.result }}
6162
steps:
@@ -78,11 +79,14 @@ jobs:
7879
- id: yarn
7980
name: Install dependencies
8081
run: yarn ${{ github.actor == 'dependabot[bot]' && '--no-immutable' || '--immutable' }}
82+
- id: cache-key
83+
name: Get cache key
84+
run: echo "result=${{ runner.os }}-${{ github.run_id }}" >>$GITHUB_OUTPUT
8185
- id: cache
8286
name: Cache dependencies
8387
uses: actions/[email protected]
8488
with:
85-
key: ${{ runner.os }}-${{ github.run_id }}
89+
key: ${{ steps.cache-key.outputs.result }}
8690
path: ${{ env.CACHE_PATH }}
8791
- id: version
8892
name: Get package version
@@ -112,7 +116,7 @@ jobs:
112116
name: Restore dependencies cache
113117
uses: actions/[email protected]
114118
with:
115-
key: ${{ runner.os }}-${{ github.run_id }}
119+
key: ${{ needs.preflight.outputs.cache-key }}
116120
path: ${{ env.CACHE_PATH }}
117121
- id: lint
118122
name: Check commitlint status
@@ -144,6 +148,7 @@ jobs:
144148
needs:
145149
- commitlint
146150
- gitguardian
151+
- preflight
147152
runs-on: ubuntu-latest
148153
steps:
149154
- id: checkout
@@ -163,7 +168,7 @@ jobs:
163168
name: Restore dependencies cache
164169
uses: actions/[email protected]
165170
with:
166-
key: ${{ runner.os }}-${{ github.run_id }}
171+
key: ${{ needs.preflight.outputs.cache-key }}
167172
path: ${{ env.CACHE_PATH }}
168173
- id: format
169174
name: Check code formatting
@@ -172,6 +177,7 @@ jobs:
172177
needs:
173178
- commitlint
174179
- gitguardian
180+
- preflight
175181
runs-on: ubuntu-latest
176182
steps:
177183
- id: checkout
@@ -191,7 +197,7 @@ jobs:
191197
name: Restore dependencies cache
192198
uses: actions/[email protected]
193199
with:
194-
key: ${{ runner.os }}-${{ github.run_id }}
200+
key: ${{ needs.preflight.outputs.cache-key }}
195201
path: ${{ env.CACHE_PATH }}
196202
- id: lint
197203
name: Check lint status
@@ -200,6 +206,7 @@ jobs:
200206
needs:
201207
- commitlint
202208
- gitguardian
209+
- preflight
203210
runs-on: ubuntu-latest
204211
steps:
205212
- id: checkout
@@ -219,7 +226,7 @@ jobs:
219226
name: Restore dependencies cache
220227
uses: actions/[email protected]
221228
with:
222-
key: ${{ runner.os }}-${{ github.run_id }}
229+
key: ${{ needs.preflight.outputs.cache-key }}
223230
path: ${{ env.CACHE_PATH }}
224231
- id: spelling
225232
name: Check spelling
@@ -262,7 +269,7 @@ jobs:
262269
name: Restore dependencies cache
263270
uses: actions/[email protected]
264271
with:
265-
key: ${{ runner.os }}-${{ github.run_id }}
272+
key: ${{ needs.preflight.outputs.cache-key }}
266273
path: ${{ env.CACHE_PATH }}
267274
- id: typescript
268275
if: steps.test-files-check.outputs.files_exists == 'true'
@@ -280,6 +287,7 @@ jobs:
280287
needs:
281288
- commitlint
282289
- gitguardian
290+
- preflight
283291
runs-on: ubuntu-latest
284292
strategy:
285293
fail-fast: false
@@ -301,6 +309,12 @@ jobs:
301309
uses: andstor/[email protected]
302310
with:
303311
files: '**/__tests__/*.spec.+(ts|tsx)'
312+
- id: yarn-ignore-node
313+
if: |
314+
steps.test-files-check.outputs.files_exists == 'true'
315+
&& startsWith(matrix.node-version, '16')
316+
name: Set env.YARN_IGNORE_NODE
317+
run: echo "YARN_IGNORE_NODE=1" >>$GITHUB_ENV
304318
- id: node
305319
if: steps.test-files-check.outputs.files_exists == 'true'
306320
name: Setup Node.js v${{ matrix.node-version }}
@@ -314,7 +328,7 @@ jobs:
314328
name: Restore dependencies cache
315329
uses: actions/[email protected]
316330
with:
317-
key: ${{ runner.os }}-${{ github.run_id }}
331+
key: ${{ needs.preflight.outputs.cache-key }}
318332
path: ${{ env.CACHE_PATH }}
319333
- id: test
320334
if: steps.test-files-check.outputs.files_exists == 'true'
@@ -368,7 +382,7 @@ jobs:
368382
name: Restore dependencies cache
369383
uses: actions/[email protected]
370384
with:
371-
key: ${{ runner.os }}-${{ github.run_id }}
385+
key: ${{ needs.preflight.outputs.cache-key }}
372386
path: ${{ env.CACHE_PATH }}
373387
- id: local-binaries
374388
name: Add local binaries to $PATH

.github/workflows/dependabot-auto.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ name: dependabot-auto
2626
on: pull_request
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.PAT_BOT }}
29+
YARN_ENABLE_GLOBAL_CACHE: true
2930
YARN_ENABLE_IMMUTABLE_INSTALLS: false
3031
jobs:
3132
dependabot-auto:

.yarn/releases/yarn-4.0.0-rc.39.cjs

Lines changed: 0 additions & 876 deletions
This file was deleted.

.yarn/releases/yarn-4.0.0-rc.50.cjs

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

.yarnrc.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ changesetIgnorePatterns:
1010
- '**/*.spec.ts'
1111
- '**/*.spec-d.ts'
1212

13+
compressionLevel: mixed
14+
1315
defaultSemverRangePrefix: ''
1416

17+
enableGlobalCache: false
18+
1519
enableInlineBuilds: true
1620

1721
enableTransparentWorkspaces: false
@@ -28,4 +32,4 @@ npmScopes:
2832

2933
patchFolder: ./patches
3034

31-
yarnPath: .yarn/releases/yarn-4.0.0-rc.39.cjs
35+
yarnPath: .yarn/releases/yarn-4.0.0-rc.50.cjs

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@
190190
"engines": {
191191
"node": ">=16.20.0",
192192
"typescript": ">=5.0.4",
193-
"yarn": "4.0.0-rc.39"
193+
"yarn": "4.0.0-rc.50"
194194
},
195-
"packageManager": "[email protected].39",
195+
"packageManager": "[email protected].50",
196196
"readme": "README.md",
197197
"sideEffects": false,
198198
"tagPrefix": "tutils@"

0 commit comments

Comments
 (0)