Skip to content

How to release a version

Jonathan Rochkind edited this page Nov 20, 2024 · 26 revisions

Before releasing, ensure that you're on the main branch.

Release it

  1. Update the version number in ./VERSION and ./package.json

    {major}.{minor}.{patch}
    
  2. Fix GitHub issue tracker to know about the release

    • Create a milestone in GitHub for the NEXT version.
    • Move any open tickets for released version to the next version.
    • Mark the milestone as closed.
  3. Release the gem and npm package

    $ bundle exec rake release
    $ bundle exec rake build:npm
    $ npm publish

The npm build step is necessary before publishing, because it creates some artifacts that are required. (For Blacklight 7, it may be npm run js-compile-bundle instead of bundle exec rake build:npm

If you are a blacklight committer who does not privileges to release ruby gem or npm package, ask someone else who does to add you!

https://rubygems.org/gems/blacklight/

https://www.npmjs.com/package/blacklight-frontend

  1. Write Github release notes for the tag, using this template:

    [Commit History](https://github.com/projectblacklight/blacklight/compare/v5.x.0...v5.x.0) | [Milestone](https://github.com/projectblacklight/blacklight/issues?q=milestone:{milestone here})
    
    (anything important about this release, themes, etc)
    
    ### New Features and improvements
    
    (#ticketnumber and a human-readable description of the ticket, usually the ticket title. If the ticket title doesn't make sense, either edit the ticket directly, or provide an alternative title here)
    
    ##  Bug Fixes
    
    ### Upgrade Notes
    
    (anything special that needs to be called out)
    
    ### Tested dependencies
    
    This version of Blacklight works on Ruby on Rails 6.1 - 7.0. (This can be found in https://github.com/projectblacklight/blacklight/blob/main/.github/workflows/ruby.yml)
    
  2. Prepare announcement

Clone this wiki locally