Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.39 KB

RELEASING.md

File metadata and controls

27 lines (20 loc) · 1.39 KB

How to make new project release

Publishing a new release

Note: These steps should be done directly in the pinterest/ktlint repository, not in your personal fork.

  1. Create a new branch (e.g. 0.50.0-prep)
  2. Update VERSION_NAME with the new release version in the project root gradle.properties. Be sure to remove -SNAPSHOT.
  3. Update CHANGELOG.md to rename the Unreleased section to the new release name, following the ## [x.x.x] - YYYY-MM-DD format.
  4. Add the new release to the bottom of the CHANGELOG.md file.
  5. Push your changes to the branch, and merge it to master.
  6. Update your local pinterest/ktlint master branch; verify you see the gradle.properties and CHANGELOG.md changes locally.
  7. 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.
  8. Close and release the repo on Sonatype. (Only Pinterest employees can do this.)
  9. Find the <release>-update-refs branch in the repo (created by the .announce script) and merge it.
  10. Update gradle.properties with the new SNAPSHOT version, and add the section below to the top of CHANGELOG.md and commit. (This can be done directly in the main repo or in your fork.)
## Unreleased

### Added

### Removed

### Fixed

### Changed