File: RELEASING.md

package info (click to toggle)
ruby-factory-bot-rails 6.5.0-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 372 kB
  • sloc: ruby: 645; makefile: 6; sh: 4
file content (26 lines) | stat: -rw-r--r-- 1,137 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Releasing

1. Update the version in the gemspec (and the factory\_bot version, if necessary)
   and run `bundle install`
1. Update `NEWS.md` to reflect the changes since last release.
   A useful GitHub URL to compare the changes is:
   https://github.com/thoughtbot/factory_bot_rails/compare/vLAST_VERSION...main
3. Commit changes.
   There shouldn't be code changes,
   and thus CI doesn't need to run,
   so you can add "[ci skip]" to the commit message.
4. Tag the release: `git tag -s vVERSION`
    - We recommend the [_quick guide on how to sign a release_] from git ready.
5. Push changes: `git push && git push --tags`
6. Build and publish:
    ```bash
    gem build factory_bot_rails.gemspec
    gem push factory_bot_rails-VERSION.gem
    ```
7. Add a new GitHub release using the recent `NEWS.md` as the content. Sample
   URL: https://github.com/thoughtbot/factory_bot_rails/releases/new?tag=vVERSION
8. Announce the new release,
   making sure to say "thank you" to the contributors
   who helped shape this version!

[_quick guide on how to sign a release_]: http://gitready.com/advanced/2014/11/02/gpg-sign-releases.html