-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use syncpack to verify consistent versions for react and react-dom (#…
…34397) * Add GitHub action and pre-push hook for syncpack for react and react-dom * Fix typo in pre-push script * Don't execute suggested command to fix mismatches automatically. * Update react and react-dom to 17.0.2 * Move changelog check to last, so that pre-push still fails if check isn't successful * Add changelog files * Correct issue with syncpack.yml referencing an internal action * Add command to top-level package.json for fixing mismatches * Update syncpack action to only run when package.json files are affected * Update workflow to just run syncpack list-mismatches * Add version pinning to syncpackrc
- Loading branch information
1 parent
b8177b8
commit 74f8d5f
Showing
14 changed files
with
2,569 additions
and
2,785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Syncronize Dependencies with syncpack | ||
on: | ||
# Run whenever a pull request is updated | ||
pull_request: | ||
branches: | ||
- trunk | ||
paths: | ||
- '**/package.json' | ||
jobs: | ||
syncpack: | ||
runs-on: ubuntu-latest | ||
name: syncpack | ||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@v3 | ||
|
||
- name: 'Setup node' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: 'Install Syncpack' | ||
run: npm install -g syncpack@^8.2.4 | ||
|
||
- name: 'List Mismatches' | ||
run: syncpack list-mismatches | ||
|
||
- name: 'Explain Remedy' | ||
if: failure() | ||
run: | | ||
echo "Dependency version mismatch detected. This can usually be fixed automatically by updating the pinned version in \`.syncpackrc` and then running: \`pnpm run | ||
sync-dependencies\`" | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"dev": true, | ||
"filter": "^(?:react|react-dom)$", | ||
"indent": "\t", | ||
"overrides": true, | ||
"peer": true, | ||
"pnpmOverrides": true, | ||
"prod": true, | ||
"semverRange": "^", | ||
"workspace": true, | ||
"versionGroups": [ | ||
{ | ||
"dependencies": [ "react", "react-dom" ], | ||
"packages": [ "**" ], | ||
"pinVersion": "^17.0.2" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: tweak | ||
Comment: Minor update of react and react-dom to 17.0.2. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: tweak | ||
Comment: Minor update of react and react-dom to 17.0.2. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: tweak | ||
Comment: Minor update of react and react-dom to 17.0.2. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: tweak | ||
Comment: Minor update of react and react-dom to 17.0.2. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.