Change development scripts

Switch to npm-workspaces monorepo task management.
This commit is contained in:
Nicolas Gallagher
2022-07-01 17:54:05 -07:00
parent 50e267b0aa
commit 31f2e66bf0
12 changed files with 89 additions and 104 deletions
+1 -1
View File
@@ -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 }}"
+3 -4
View File
@@ -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
+8 -12
View File
@@ -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