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
Automate release process via Changesets #3915
Conversation
caa863c
to
8a9e2a1
Compare
0f63626
to
dc4986a
Compare
730019d
to
f5b403d
Compare
@frangio I took your RegExp comments with some small modifications, you can review it again but I wouldn't suggest that since there are a few things to consider:
I tested with multiple files I have in the history of this PR and it works fine, but I don't want to focus on hyper optimize this RegEx since it may break discoveries I made in the past while testing. |
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Francisco <fg@frang.io>
6a2952f
to
679e930
Compare
|
||
changesets: | ||
needs: state | ||
name: Changesets PR |
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.
name: Changesets PR | |
name: Update PR to release |
|
||
merge: | ||
needs: state | ||
name: Release PR back to master |
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.
name: Release PR back to master | |
name: Create PR back to master |
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.
Looks good!
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2023 OpenZeppelin Contracts Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
Description
This PR is aiming to automate the release process by adding the following changes:
Tasks
CHANGELOG.md
managementCHANGELOG.md
, so it aligns with our current format (changesets don't fully support customization)Release Cycle
Required Changes
In order to implement the automation, it was needed to first adapt some things:
CHANGELOG.md
format to use prettier (that's the default for changesets)CHANGELOG.md
so the newformat-changelog.js
script doesn't override themPULL_REQUEST_TEMPLATE.md
to use changesetsnpm run version
, now the Changesets PR adds them all to a PRTODO before merging
Since this Pull Request interacts with some GitHub repository settings, it's needed to first configure the following:
npm
environmentNPM_TOKEN
variableOpen Questions
CHANGELOG.md
due to the post-processing we do informat-changelog.js