Skip to content

Commit

Permalink
Move to inputs.switch from inputs.react-version
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed May 24, 2024
1 parent f571f67 commit 05d5976
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
call-workflow:
strategy:
matrix:
react-version: [current, 16, 17, 18]
switch: [current, react-16, react-17, react-18]
uses: compulim/workflows/.github/workflows/pull-request-validation.yml@main
with:
package-name: use-ref-from
react-version: ${{ matrix.react-version }}
switch: ${{ matrix.switch }}
skip-integration-test: false
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"postscaffold:eslint:react": "npm run bump:eslintrc",
"precommit": "npm run precommit --if-present --workspaces",
"switch:_": "npm run --if-present --workspaces switch && npm install --legacy-peer-deps --prefer-dedupe",
"switch:react:16": "SWITCH_NAME=react:16 npm run switch:_",
"switch:react:17": "SWITCH_NAME=react:17 npm run switch:_",
"switch:react:18": "SWITCH_NAME=react:18 npm run switch:_",
"switch:react-16": "SWITCH_NAME=react-16 npm run switch:_",
"switch:react-17": "SWITCH_NAME=react-17 npm run switch:_",
"switch:react-18": "SWITCH_NAME=react-18 npm run switch:_",
"test": "npm run test --if-present --workspaces"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/integration-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@
},
"author": "William Wong (https://github.com/compulim)",
"license": "MIT",
"switch:react:16": {
"switch:react-16": {
"devDependencies": {
"@testing-library/react": "^12",
"@types/react": "^16",
"react": "16.8.0",
"react-test-renderer": "16.8.0"
}
},
"switch:react:17": {
"switch:react-17": {
"devDependencies": {
"@testing-library/react": "^12",
"@types/react": "^17",
"react": "17.0.0",
"react-test-renderer": "17.0.0"
}
},
"switch:react:18": {
"switch:react-18": {
"devDependencies": {
"@types/react": "^18",
"react": "18.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"author": "William Wong (https://github.com/compulim)",
"license": "MIT",
"switch:react:16": {
"switch:react-16": {
"devDependencies": {
"@types/react": "^16",
"@types/react-dom": "^16"
Expand All @@ -26,7 +26,7 @@
"react-dom": "16.8.0"
}
},
"switch:react:17": {
"switch:react-17": {
"devDependencies": {
"@types/react": "^17",
"@types/react-dom": "^17"
Expand All @@ -36,7 +36,7 @@
"react-dom": "17.0.0"
}
},
"switch:react:18": {
"switch:react-18": {
"devDependencies": {
"@types/react": "^18",
"@types/react-dom": "^18"
Expand Down
6 changes: 3 additions & 3 deletions packages/use-ref-from/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"url": "https://github.com/compulim/use-ref-from/issues"
},
"homepage": "https://github.com/compulim/use-ref-from#readme",
"switch:react:16": {
"switch:react-16": {
"devDependencies": {
"@testing-library/react": "^12",
"@testing-library/react-hooks": "latest",
Expand All @@ -75,7 +75,7 @@
"react-test-renderer": "16.8.0"
}
},
"switch:react:17": {
"switch:react-17": {
"devDependencies": {
"@testing-library/react": "^12",
"@testing-library/react-hooks": "latest",
Expand All @@ -84,7 +84,7 @@
"react-test-renderer": "17.0.0"
}
},
"switch:react:18": {
"switch:react-18": {
"devDependencies": {
"@types/react": "^18",
"react": "18.0.0",
Expand Down

0 comments on commit 05d5976

Please sign in to comment.