Skip to content

Commit

Permalink
chore: bump Yarn to 3.4.1 (react-native-async-storage#914)
Browse files Browse the repository at this point in the history
We keep getting network failures when running `yarn install`. Yarn v3
handles this much better.
  • Loading branch information
tido64 authored Feb 20, 2023
1 parent c5f188d commit ebb488d
Show file tree
Hide file tree
Showing 8 changed files with 16,947 additions and 12,175 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cache:
save yarn cache: &cache_save_yarn
name: Saving Yarn cache
paths:
- ~/.cache/yarn
- .yarn/cache
- ~/Library/Detox
key: *key_yarn

Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- restore-cache: *cache_restore_yarn
- run:
name: Install dependencies
command: yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
command: yarn
- save-cache: *cache_save_yarn
- persist_to_workspace:
root: .
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
- restore-cache: *cache_restore_yarn
- run:
name: Installing Yarn dependencies
command: yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
command: yarn
- save-cache: *cache_save_yarn
- restore-cache: *cache_restore_gradle
- run:
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
- restore-cache: *cache_restore_yarn
- run:
name: Installing Yarn dependencies
command: yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
command: yarn
- save-cache: *cache_save_yarn
- restore-cache: *cache_restore_pods
- run:
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
- restore_cache: *cache_restore_yarn
- run:
name: Install dependencies
command: yarn --pure-lockfile --non-interactive --cache-folder ~/.cache/yarn
command: yarn
- save_cache: *cache_save_yarn
- run:
name: Bundle JS
Expand Down
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
*.pbxproj -text
/.yarn/releases/* binary
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
cache: 'yarn'
- name: Install JS dependencies
run: |
yarn ci
yarn
- name: Bundle JS
run: |
yarn bundle:macos
Expand Down Expand Up @@ -52,11 +52,10 @@ jobs:
cache: 'yarn'
- name: Install JS dependencies
run: |
yarn ci
yarn
- name: Install Windows test app
run: |
yarn install-windows-test-app -p example/windows
- name: Build
run: |
yarn react-native run-windows --release --arch x64 --logging --no-packager --no-launch --no-deploy --msbuildprops "BundleEntryFile=index.ts" --no-telemetry
working-directory: example/windows
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ msbuild.binlog

# node.js
#
.yarn
!.yarn/releases
node_modules/
npm-debug.log
yarn-error.log
Expand Down
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.4.1.cjs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
enableTelemetry: false
logFilters:
- code: YN0007 # X must be built because it never has been before or the last one failed
level: discard
- code: YN0008 # X must be rebuilt because its dependency tree changed
level: discard
- code: YN0013 # X can't be found in the cache and will be fetched from the remote registry
level: discard
nodeLinker: node-modules
npmRegistryServer: "https://registry.npmjs.org"
yarnPath: .yarn/releases/yarn-3.4.1.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"url": "https://github.com/react-native-async-storage/async-storage.git"
},
"scripts": {
"ci": "yarn --pure-lockfile --non-interactive",
"format": "concurrently yarn:format:*",
"format:c": "clang-format -i $(git ls-files '*.cpp' '*.h' '*.m' '*.mm')",
"format:js": "prettier --write $(git ls-files '*.js' '*.json' '*.md' '*.ts' '*.tsx' '*.yml')",
Expand Down Expand Up @@ -96,6 +95,7 @@
"semantic-release": "^19.0.0",
"typescript": "^4.5.0"
},
"packageManager": "[email protected]",
"resolutions": {
"npm/chalk": "^4.1.2"
},
Expand Down
Loading

0 comments on commit ebb488d

Please sign in to comment.