mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-23 14:57:13 +00:00
Change development scripts
Switch to npm-workspaces monorepo task management.
This commit is contained in:
@@ -9,7 +9,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: necolas/compressed-size-action@master
|
||||
with:
|
||||
build-script: "compile"
|
||||
build-script: "build -w react-native-web"
|
||||
exclude: "./packages/react-native-web/dist/cjs/{index.js,**/*.js}"
|
||||
pattern: "./packages/react-native-web/dist/{index.js,**/*.js}"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
||||
@@ -13,9 +13,8 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14.x'
|
||||
- run: npm install -g yarn
|
||||
- run: yarn install
|
||||
- run: npm install
|
||||
# Install next-tagged versions
|
||||
- run: yarn upgrade react@next react-dom@next -W --dev
|
||||
- run: npm update react@next react-dom@next
|
||||
# Only run the unit tests
|
||||
- run: yarn jest
|
||||
- run: npm run unit
|
||||
|
||||
@@ -15,9 +15,8 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14.x'
|
||||
- run: npm install -g yarn
|
||||
- run: yarn install
|
||||
- run: yarn fmt:report
|
||||
- run: npm install
|
||||
- run: npm run format
|
||||
|
||||
type-check:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -26,9 +25,8 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14.x'
|
||||
- run: npm install -g yarn
|
||||
- run: yarn install
|
||||
- run: yarn flow
|
||||
- run: npm install
|
||||
- run: npm run flow
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -37,9 +35,8 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14.x'
|
||||
- run: npm install -g yarn
|
||||
- run: yarn install
|
||||
- run: yarn lint:report
|
||||
- run: npm install
|
||||
- run: npm run lint
|
||||
|
||||
unit-test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -48,6 +45,5 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14.x'
|
||||
- run: npm install -g yarn
|
||||
- run: yarn install
|
||||
- run: yarn jest
|
||||
- run: npm install
|
||||
- run: npm run unit
|
||||
|
||||
Reference in New Issue
Block a user