Fix workflows and monorepo deps

* Remove 'react' packages from monorepo dependencies.
* Ensure 'react-native-web' package is built first.
This commit is contained in:
Nicolas Gallagher
2022-07-02 12:35:12 -07:00
parent e9badc3e38
commit 074861623e
11 changed files with 63 additions and 87 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ Fork, then clone the repo:
git clone https://github.com/your-username/react-native-web.git
```
Install dependencies (requires Node.js >= 14.0):
Install dependencies (requires Node.js >= 16.0):
```
npm install
@@ -86,7 +86,7 @@ Run all the automated tests:
npm run test
```
### New Features
## New Features
Please open an issue with a proposal for a new feature or refactoring before starting on the work. We don't want you to waste your efforts on a pull request that we won't want to accept.
+1 -1
View File
@@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: necolas/compressed-size-action@master
with:
build-script: "build -w react-native-web"
build-script: "compile"
exclude: "./packages/react-native-web/dist/cjs/{index.js,**/*.js}"
pattern: "./packages/react-native-web/dist/{index.js,**/*.js}"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
+4 -4
View File
@@ -12,9 +12,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.x'
- run: npm install
# Install next-tagged versions
- run: npm update react@next react-dom@next
# Only run the unit tests
# Update react-native-web to use react@next
- run: npm update react@next react-dom@next -w react-native-web
# Run the unit tests
- run: npm run unit
+4 -4
View File
@@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.x'
- run: npm install
- run: npm run format
@@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.x'
- run: npm install
- run: npm run flow
@@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.x'
- run: npm install
- run: npm run lint
@@ -44,6 +44,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.x'
- run: npm install
- run: npm run unit