Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
chore: skip release if there are no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
subzero10 committed May 25, 2022
1 parent 5890da4 commit df35a68
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ For a detailed explanation on how hot reloading works, check out the [documentat
## Changelog

See https://github.com/honeybadger-io/honeybadger-react/blob/master/CHANGELOG.md
Changelog is automatically generated with [our release automation process](#release-automation).

## Contributing

Expand Down Expand Up @@ -92,6 +93,16 @@ npm run start
2. To publish the release, use `npm publish`. See `npm help publish` for
documentation.

### Release Automation

We use [Ship.js](https://github.com/algolia/shipjs) to automate releasing.

Ship.js creates a PR once per week when unreleased changes are present. You can also trigger a release PR by saying "@shipjs prepare" in any issue or pull request comment on GitHub.

#### Troubleshooting a failed Ship.js release

If a ship.js release fails, you need to revert the release commit and delete the release branch (e.g `releases/v1.1.0`)
Then, you can debug the issue by simulating the release process locally (`npm run release -- --dry-run --yes --no-browse`).

### License

Expand Down
7 changes: 7 additions & 0 deletions ship.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
module.exports = {
shouldPrepare: ({ releaseType, commitNumbersPerType }) => {
const { fix = 0 } = commitNumbersPerType;
if (releaseType === 'patch' && fix === 0) {
return false;
}
return true;
},
publishCommand: ({ defaultCommand, tag }) =>
`${defaultCommand} --access public --tag ${tag}`,
};

0 comments on commit df35a68

Please sign in to comment.