-
Notifications
You must be signed in to change notification settings - Fork 440
Generate changelogs per release #1056
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
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.
Approving with a nit.
I still think this can be done without unpkg by simply replacing the unpkg part with the getLatestTag()
, but that's a separate issue.
@@ -169,14 +177,9 @@ export function generate(): string { | |||
} | |||
|
|||
const output = outputs.join("\n\n"); | |||
|
|||
if (!output.length) { |
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.
Could you move this logic to the caller?
deploy/deployChangedPackages.mjs
Outdated
|
||
console.log("\n# Release notes:"); |
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.
I don't know the code well enough -- but it looks like this prints the release notes but doesn't upload them. Is that the intent?
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.
It does! I just figured it'd be nice to have that in the CI logs also
OK, this is updated to use the git tags and all feedback is resolved 👍🏻 |
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.
Cool!
deploy/deployChangedPackages.mjs
Outdated
// This assumes we'll only _ever_ ship patches, which may change in the | ||
// future someday. | ||
const [maj, min, patch] = pkgJSON.version.split("."); | ||
const olderVersion = `${maj}.${min}.${patch - 1}`; |
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.
(Just to note for future reference: git describe --tags --match "@types/web@*" --abbrev=0
can do the same thing)
Co-authored-by: Kagami Sascha Rosylight <[email protected]>
Add support for re-using the CHANGELOG infra for the releases - https://github.com/microsoft/TypeScript-DOM-lib-generator/releases