Skip to content

chore: bump Yarn to 3.4.1 #914

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 8 commits into from
Feb 20, 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
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",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is default in v3, when it detects that it is running in a CI environment.

"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