Skip to content

Commit

Permalink
Move to switch from react-version (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim authored May 24, 2024
1 parent 0348290 commit 9110ad8
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: react-chain-of-responsibility
react-version: ${{ matrix.react-version }}
skip-integration-test: false
switch: ${{ matrix.switch }}
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 @@ -17,21 +17,21 @@
"localPeerDependencies": {
"react-chain-of-responsibility": "^0.0.0-0"
},
"switch:react:16": {
"switch:react-16": {
"devDependencies": {
"@types/react": "^16",
"react": "16.8.0",
"react-test-renderer": "16.8.0"
}
},
"switch:react:17": {
"switch:react-17": {
"devDependencies": {
"@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 @@ -19,7 +19,7 @@
"localPeerDependencies": {
"react-chain-of-responsibility": "^0.0.0-0"
},
"switch:react:16": {
"switch:react-16": {
"devDependencies": {
"@types/react": "^16",
"@types/react-dom": "^16"
Expand All @@ -29,7 +29,7 @@
"react-dom": "16.8.0"
}
},
"switch:react:17": {
"switch:react-17": {
"devDependencies": {
"@types/react": "^17",
"@types/react-dom": "^17"
Expand All @@ -39,7 +39,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/react-chain-of-responsibility/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"url": "https://github.com/compulim/react-chain-of-responsibility/issues"
},
"homepage": "https://github.com/compulim/react-chain-of-responsibility#readme",
"switch:react:16": {
"switch:react-16": {
"devDependencies": {
"@testing-library/react": "^12",
"@types/react": "^16",
Expand All @@ -85,7 +85,7 @@
"react-test-renderer": "16.8.0"
}
},
"switch:react:17": {
"switch:react-17": {
"devDependencies": {
"@testing-library/react": "^12",
"@types/react": "^17",
Expand All @@ -94,7 +94,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 9110ad8

Please sign in to comment.