How to release a version - projectblacklight/blacklight GitHub Wiki
Before releasing, ensure that you're on the main branch.
Release it
-
Update the version number in
./VERSIONand./package.json{major}.{minor}.{patch}For pre-releases, rubygems versions look like eg
3.0.0.beta1, but npm package versions (which don't allow a fourth period) look like3.0.0-beta1.Then run
npm installsopackage-lock.jsonpicks up the new version, and commit all three files. (rake releaserefuses to run if the working tree isn't clean, andnpm installwould otherwise change the lockfile partway through the release.) -
Release the gem and npm package
$ npm login $ bundle exec rake releaseFor Blacklight 8 and later,
rake releasedoes everything: it builds the JavaScript (build:npm), builds the gem, tags and pushes the release, pushes the gem to rubygems.org, and runsnpm publish. To skip the npm step, usenpm_push=no bundle exec rake release.-
If your rubygems.org account has MFA enabled, the gem push will fail when it can't prompt for a code (for example when run by a script or agent). The tag is already pushed at that point, so finish with
gem push pkg/blacklight-{version}.gem --otp {code}and thennpm publish. -
For Blacklight 7,
rake releasedoesn't publish to npm. Afterwards runnpm run js-compile-bundleand thennpm publish. -
Note that running
npm publishtags the release aslatest, which we only want to happen for releases within the current major version. So if you're publishing a new release of an older Blacklight version, you can fix this via e.g.$ npm dist-tag add [email protected] latest -
If you are a Blacklight committer who does not have privileges to release the ruby gem or npm package, ask someone else who does to add you!
-
-
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/matrix.json) -
Prepare announcement
- Include URL to GitHub closed issues for version
- Include URL to github commits between tags. github can show all commits between two versions with a URL of this form: http://github.com/projectblacklight/blacklight/compare/v2.5.0...v2.6.0 Replace with previous version and current release version tags.
- Include URL to the Github release notes