Skip to content

Commit 8e67b9d

Browse files
Merge commit '81e490164fd98ea2f89ac62bceae1d0c80464bd2' into 0.79-merge
2 parents 9634b2d + dc21fb1 commit 8e67b9d

File tree

1,950 files changed

+80132
-34072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,950 files changed

+80132
-34072
lines changed

.ado/jobs/npm-publish.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ jobs:
5252
5353
# Disable Nightly publishing on the main branch
5454
- ${{ if endsWith(variables['Build.SourceBranchName'], '-stable') }}:
55+
- script: |
56+
if [ "$(USE_YARN_FOR_PUBLISH)" = "true" ]; then
57+
echo "Configuring yarn for npm publishing"
58+
yarn config set npmPublishRegistry "https://registry.npmjs.org"
59+
yarn config set npmAuthToken $(npmAuthToken)
60+
else
61+
echo "Configuring npm for publishing"
62+
echo "//registry.npmjs.org/:_authToken=$(npmAuthToken)" > ~/.npmrc
63+
fi
64+
node .ado/scripts/prepublish-check.mjs --verbose --tag $(publishTag)
65+
displayName: Set and validate npm auth
66+
condition: and(succeeded(), eq(variables['publish_react_native_macos'], '1'))
67+
5568
- script: |
5669
git switch $(Build.SourceBranchName)
5770
yarn nx release --skip-publish --verbose
@@ -68,16 +81,13 @@ jobs:
6881
# Let's call publish directly instead on the packages we want to publish.
6982
# yarn nx release publish --tag $(publishTag) --excludeTaskDependencies
7083
if [ "$(USE_YARN_FOR_PUBLISH)" = "true" ]; then
71-
echo "Configuring yarn for npm publishing"
72-
yarn config set npmPublishRegistry "https://registry.npmjs.org"
73-
yarn config set npmAuthToken $(npmAuthToken)
7484
echo "Publishing with yarn npm publish"
7585
yarn ./packages/virtualized-lists npm publish --tag $(publishTag)
7686
yarn ./packages/react-native npm publish --tag $(publishTag)
7787
else
7888
echo "Publishing with npm publish"
79-
npm publish ./packages/virtualized-lists --tag $(publishTag) --registry https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=$(npmAuthToken)
80-
npm publish ./packages/react-native --tag $(publishTag) --registry https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=$(npmAuthToken)
89+
(cd ./packages/virtualized-lists && npm publish --tag $(publishTag))
90+
(cd ./packages/react-native && npm publish --tag $(publishTag))
8191
fi
8292
fi
8393
displayName: Publish packages

.circleci/README.md

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

.circleci/config.yml

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

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ packages/react-native/Libraries/vendor/**/*
1010
node_modules/
1111
packages/*/node_modules
1212
packages/*/dist
13+
packages/*/types_generated
1314
packages/debugger-frontend/dist/**/*
1415
packages/react-native-codegen/lib
1516
tools/eslint/rules/sort-imports.js

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ module.exports = {
3535
'no-undef': 0,
3636
},
3737
},
38+
{
39+
files: [
40+
'./packages/react-native/**/*.{js,flow}',
41+
'./packages/assets/registry.js',
42+
],
43+
parser: 'hermes-eslint',
44+
rules: {
45+
'lint/no-commonjs-exports': 1,
46+
},
47+
},
3848
{
3949
files: ['package.json'],
4050
parser: 'jsonc-eslint-parser',

.flowconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
flow-typed/
4242
packages/react-native/interface.js
4343
packages/react-native/flow/
44+
packages/react-native/src/types/
4445

4546
[options]
4647
enums=true
@@ -95,4 +96,4 @@ untyped-import
9596
untyped-type-import
9697

9798
[version]
98-
^0.258.1
99+
^0.262.0

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ body:
6969
- type: textarea
7070
id: react-native-info
7171
attributes:
72-
label: Output of `npx react-native info`
73-
description: Run `npx react-native info` in your terminal, copy and paste the results here.
72+
label: Output of `npx @react-native-community/cli info`
73+
description: Run `npx @react-native-community/cli info` in your terminal, copy and paste the results here.
7474
placeholder: |
75-
Paste the output of `npx react-native info` here. The output looks like:
75+
Paste the output of `npx @react-native-community/cli info` here. The output looks like:
7676
...
7777
System:
7878
OS: macOS 14.1.1

.github/ISSUE_TEMPLATE/debugger_bug_report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ body:
4848
- type: textarea
4949
id: react-native-info
5050
attributes:
51-
label: Output of `npx react-native info`
52-
description: Run `npx react-native info` in your terminal, copy and paste the results here.
51+
label: Output of `npx @react-native-community/cli info`
52+
description: Run `npx @react-native-community/cli info` in your terminal, copy and paste the results here.
5353
placeholder: |
54-
Paste the output of `npx react-native info` here. The output looks like:
54+
Paste the output of `npx @react-native-community/cli info` here. The output looks like:
5555
...
5656
System:
5757
OS: macOS 14.1.1

.github/ISSUE_TEMPLATE/new_architecture_bug_report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ body:
8181
- type: textarea
8282
id: react-native-info
8383
attributes:
84-
label: Output of `npx react-native info`
85-
description: Run `npx react-native info` in your terminal, copy and paste the results here.
84+
label: Output of `npx @react-native-community/cli info`
85+
description: Run `npx @react-native-community/cli info` in your terminal, copy and paste the results here.
8686
placeholder: |
87-
Paste the output of `npx react-native info` here. The output looks like:
87+
Paste the output of `npx @react-native-community/cli info` here. The output looks like:
8888
...
8989
System:
9090
OS: macOS 14.1.1

.github/actions/build-android/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ inputs:
77
run-e2e-tests:
88
default: 'false'
99
description: If we need to build to run E2E tests. If yes, we need to build also x86.
10+
gradle-cache-encryption-key:
11+
description: "The encryption key needed to store the Gradle Configuration cache"
1012
runs:
1113
using: composite
1214
steps:
@@ -20,12 +22,11 @@ runs:
2022
- name: Set React Native Version
2123
shell: bash
2224
run: node ./scripts/releases/set-rn-artifacts-version.js --build-type ${{ inputs.release-type }}
23-
# We don't want to re-set the artifacts version if we're on the release branch.
24-
if: ${{ !contains(github.ref, '-stable') }}
2525
- name: Setup gradle
2626
uses: ./.github/actions/setup-gradle
2727
with:
2828
cache-read-only: "false"
29+
cache-encryption-key: ${{ inputs.gradle-cache-encryption-key }}
2930
- name: Restore Android ccache
3031
uses: actions/cache/restore@v4
3132
with:

0 commit comments

Comments
 (0)