mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-08-15 18:45:06 +00:00
Fix workflows and monorepo deps
* Remove 'react' packages from monorepo dependencies. * Ensure 'react-native-web' package is built first.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user