Skip to content

Commit 444c39a

Browse files
committed
Merge branch 'facebook-main' into production
# Conflicts: # .gitignore
2 parents 0b4e8b3 + 07868a3 commit 444c39a

27 files changed

+22740
-15862
lines changed

.github/workflows/pre-merge.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ jobs:
1616
uses: actions/setup-node@v4
1717
with:
1818
node-version: "20"
19-
cache: "yarn"
2019

21-
- name: Install dependencies
22-
run: yarn install --frozen-lockfile --no-progress --non-interactive
20+
- name: Enable Corepack
21+
run: corepack enable
22+
23+
- name: Check dependencies
24+
run: yarn dedupe --check
2325

26+
- name: Install dependencies
27+
run: yarn install --immutable
28+
2429
- name: Run Lint
2530
run: yarn ci:lint
2631
working-directory: website
@@ -35,10 +40,12 @@ jobs:
3540
uses: actions/setup-node@v4
3641
with:
3742
node-version: "20"
38-
cache: "yarn"
43+
44+
- name: Enable Corepack
45+
run: corepack enable
3946

4047
- name: Install dependencies
41-
run: yarn install --frozen-lockfile --no-progress --non-interactive
48+
run: yarn install --immutable
4249

4350
- name: Build
4451
run: yarn build

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,12 @@ website/build/
4141

4242
cnwebsite/.docusaurus
4343
cnwebsite/.cache-loader
44-
cnwebsite/build/
44+
cnwebsite/build/
45+
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
46+
.pnp.*
47+
.yarn/*
48+
!.yarn/patches
49+
!.yarn/plugins
50+
!.yarn/releases
51+
!.yarn/sdks
52+
!.yarn/versions

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@ If you are looking for the source code of the [React Native Archive website](htt
2626
### Prerequisites
2727

2828
1. [Git](https://git-scm.com/downloads).
29-
1. [Node](https://nodejs.org/en/download/) _(version 12 or greater)_.
30-
1. [Yarn](https://yarnpkg.com/lang/en/docs/install/) _(version 1.5 or greater)_.
29+
1. [Node](https://nodejs.org/en/download/) _(version 20 or greater)_.
30+
1. [Yarn](https://yarnpkg.com/getting-started/install) _(version 4)_.
3131
1. A fork of the repo _(for any contributions)_.
3232
1. A clone of the `react-native-website` repo.
3333

3434
### Installation
3535

3636
1. `cd react-native-website` to go into the project root.
37+
1. Run `corepack enable` to enable Corepack.
38+
39+
> If the command above fails, run `npm install -g corepack@latest` to install the latest version of [Corepack](https://yarnpkg.com/corepack#installation).
40+
3741
1. Run `yarn` to install the website's workspace dependencies.
3842

3943
### Running locally
@@ -175,6 +179,7 @@ If possible, test any visual changes in all latest versions of the following bro
175179
### Push it
176180

177181
1. Run `yarn prettier` and `yarn language:lint` in `./website` directory to ensure your changes are consistent with other files in the repo.
182+
1. Run `yarn update-lock` to [deduplicate dependencies](https://yarnpkg.com/cli/dedupe).
178183
1. `git add -A && git commit -m "My message"` to stage and commit your changes.
179184
> replace `My message` with a commit message, such as `Fixed header logo on Android`
180185
1. `git push my-fork-name the-name-of-my-branch`

0 commit comments

Comments
 (0)