From 05d59765f135509faee4518ab6a290e7c48af41e Mon Sep 17 00:00:00 2001 From: William Wong Date: Fri, 24 May 2024 14:55:08 -0700 Subject: [PATCH] Move to inputs.switch from inputs.react-version --- .github/workflows/pull-request-validation.yml | 4 ++-- package.json | 6 +++--- packages/integration-test/package.json | 6 +++--- packages/pages/package.json | 6 +++--- packages/use-ref-from/package.json | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pull-request-validation.yml b/.github/workflows/pull-request-validation.yml index e5f49e7..45c207a 100644 --- a/.github/workflows/pull-request-validation.yml +++ b/.github/workflows/pull-request-validation.yml @@ -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 diff --git a/package.json b/package.json index 86c7444..8c8253d 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/packages/integration-test/package.json b/packages/integration-test/package.json index 7a61f9a..360136e 100644 --- a/packages/integration-test/package.json +++ b/packages/integration-test/package.json @@ -14,7 +14,7 @@ }, "author": "William Wong (https://github.com/compulim)", "license": "MIT", - "switch:react:16": { + "switch:react-16": { "devDependencies": { "@testing-library/react": "^12", "@types/react": "^16", @@ -22,7 +22,7 @@ "react-test-renderer": "16.8.0" } }, - "switch:react:17": { + "switch:react-17": { "devDependencies": { "@testing-library/react": "^12", "@types/react": "^17", @@ -30,7 +30,7 @@ "react-test-renderer": "17.0.0" } }, - "switch:react:18": { + "switch:react-18": { "devDependencies": { "@types/react": "^18", "react": "18.0.0", diff --git a/packages/pages/package.json b/packages/pages/package.json index adb441f..f2917ea 100644 --- a/packages/pages/package.json +++ b/packages/pages/package.json @@ -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" @@ -26,7 +26,7 @@ "react-dom": "16.8.0" } }, - "switch:react:17": { + "switch:react-17": { "devDependencies": { "@types/react": "^17", "@types/react-dom": "^17" @@ -36,7 +36,7 @@ "react-dom": "17.0.0" } }, - "switch:react:18": { + "switch:react-18": { "devDependencies": { "@types/react": "^18", "@types/react-dom": "^18" diff --git a/packages/use-ref-from/package.json b/packages/use-ref-from/package.json index 21f5cb3..0625352 100644 --- a/packages/use-ref-from/package.json +++ b/packages/use-ref-from/package.json @@ -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", @@ -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", @@ -84,7 +84,7 @@ "react-test-renderer": "17.0.0" } }, - "switch:react:18": { + "switch:react-18": { "devDependencies": { "@types/react": "^18", "react": "18.0.0",