-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compel users to release new versions of dependencies alongside their dependents #102
Compel users to release new versions of dependencies alongside their dependents #102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking better! Just some user experience tweaks and attempts to simplify the logic so it's a bit easier to parse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error: src/package-manifest.ts(32,12): error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.
Error: src/package-manifest.ts(32,39): error TS2339: Property 'Dependencies' does not exist on type 'typeof ManifestFieldNames'.
Error: src/package-manifest.ts(33,12): error TS1170: A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.
Error: src/package-manifest.ts(33,39): error TS2339: Property 'PeerDependencies' does not exist on type 'typeof ManifestFieldNames'.
Error: src/package-manifest.ts(88,30): error TS2339: Property 'Dependencies' does not exist on type 'typeof ManifestFieldNames'.
Error: src/package-manifest.ts(92,30): error TS2339: Property 'PeerDependencies' does not exist on type 'typeof ManifestFieldNames'.
Error: src/package-manifest.ts(306,33): error TS2694: Namespace '"/home/runner/work/create-release-branch/create-release-branch/node_modules/@metamask/action-utils/dist/package-utils".ManifestFieldNames' has no exported member 'Dependencies'.
Error: src/package-manifest.ts(307,33): error TS2694: Namespace '"/home/runner/work/create-release-branch/create-release-branch/node_modules/@metamask/action-utils/dist/package-utils".ManifestFieldNames' has no exported member 'PeerDependencies'.
Error: src/package-manifest.ts(354,31): error TS2339: Property 'Dependencies' does not exist on type 'typeof ManifestFieldNames'.
Error: src/package-manifest.ts(359,31): error TS2339: Property 'PeerDependencies' does not exist on type 'typeof ManifestFieldNames'.
Error: src/package-manifest.ts(367,32): error TS2339: Property 'Dependencies' does not exist on type 'typeof ManifestFieldNames'.
Error: src/package-manifest.ts(368,32): error TS2339: Property 'PeerDependencies' does not exist on type 'typeof ManifestFieldNames'.
Error: src/release-specification.ts(218,17): error TS2339: Property 'dependencies' does not exist on type 'ValidatedPackageManifest'.
Error: src/release-specification.ts(218,31): error TS2339: Property 'peerDependencies' does not exist on type 'ValidatedPackageManifest'.
Error: src/release-specification.ts(328,36): error TS2339: Property 'dependencies' does not exist on type 'ValidatedPackageManifest'.
Error: src/release-specification.ts(329,36): error TS2339: Property 'peerDependencies' does not exist on type 'ValidatedPackageManifest'.
Error: Process completed with exit code 2.
https://github.com/MetaMask/action-utils/blob/main/src/package-utils.ts#L20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestions to fix the TypeScript errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Just two more things and then I think we can call this good:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this took so long and thanks for sticking with it. Looks good now!
## Explanation This PR updates the release process to take in considerations recent changes on create-release-branch. - Compel users to release packages with breaking changes alongside their dependents [MetaMask/create-release-branch#101] - Compel users to release new versions of dependencies alongside their dependents [MetaMask/create-release-branch#102] - Reorder workflow to update changelogs first [MetaMask/create-release-branch#109] ## References - Closes #1741 ## Changelog N/A ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
This PR Compel users to release new versions of dependencies alongside their dependents
Issue: 91