Note: These steps should be done directly in the pinterest/ktlint repository, not in your personal fork.
- Create a new branch (e.g.
0.50.0-prep) - Update
VERSION_NAMEwith the new release version in the project rootgradle.properties. Be sure to remove-SNAPSHOT. - Update
CHANGELOG.mdto rename theUnreleasedsection to the new release name, following the## [x.x.x] - YYYY-MM-DDformat. - Add the new release to the bottom of the
CHANGELOG.mdfile. - Push your changes to the branch, and merge it to
master. - Update your local
pinterest/ktlintmasterbranch; verify you see thegradle.propertiesandCHANGELOG.mdchanges locally. - Add a tag with the new release version, and push it directly to remote (e.g.
git tag 0.50.0 && git push origin 0.50.0). This will kick off the Release workflow. - Close and release the repo on Sonatype. (Only Pinterest employees can do this.)
- Find the
<release>-update-refsbranch in the repo (created by the.announcescript) and merge it. - Update
gradle.propertieswith the newSNAPSHOTversion, and add the section below to the top ofCHANGELOG.mdand commit. (This can be done directly in the main repo or in your fork.)
## Unreleased
### Added
### Removed
### Fixed
### Changed