Skip to content

Commit 8cb5b7c

Browse files
authored
Merge pull request #830 from Shopify/document-release-workflow
Document new release workflow
2 parents c149dd9 + 5361399 commit 8cb5b7c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,24 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
377377

378378
To install this gem onto your local machine, run `bundle exec rake install`.
379379

380+
## Releasing
381+
382+
### Bump the gem version
383+
384+
- [ ] Locally, update the version number in [`version.rb`](https://github.com/Shopify/spoom/blob/main/lib/spoom/version.rb)
385+
- [ ] Run `bundle install` to update the version number in `Gemfile.lock`
386+
- [ ] Commit this change with the message `Bump version to vx.y.z`
387+
- [ ] Push this change directly to main or open a PR
388+
389+
### Create a new tag
390+
391+
- [ ] Locally, create a new tag with the new version number: `git tag vx.y.z`
392+
- [ ] Push this tag up to the remote `git push origin vx.y.z`
393+
394+
### Release workflow will run automatically
395+
396+
We have a [release workflow](https://github.com/Shopify/spoom/actions/workflows/release.yml) that will publish your new gem version to rubygems.org via [Trusted Publishing](https://guides.rubygems.org/trusted-publishing/). This workflow must be approved by a member of the Ruby and Rails Infrastructure team at Shopify before it will run. Once it is approved, it will automatically publish a new gem version to rubygems.org and create a new GitHub release.
397+
380398
## Contributing
381399

382400
Bug reports and pull requests are welcome on GitHub at https://github.com/Shopify/spoom. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

0 commit comments

Comments
 (0)