Skip to content

Commit

Permalink
feat(release): add --no-changelog option
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Aug 4, 2016
1 parent 564e1d5 commit ced51fe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ You can generate a changelog for all versions by using `--first`
$ aegir-relase --first
```

You can skip all changelog generation and the github release by passing
in `--no-changelog`.

## Other Notes

There is a badge.
Expand Down
5 changes: 5 additions & 0 deletions tasks/release/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
const $ = require('gulp-load-plugins')()

module.exports = (gulp, done) => {
if ($.util.env.changelog === false) {
$.util.log('Skipping changelog generation')
return done()
}

const releaseCount = $.util.env.first ? 0 : 1

return gulp.src('CHANGELOG.md')
Expand Down
5 changes: 5 additions & 0 deletions tasks/release/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ const $ = require('gulp-load-plugins')()
const conventionalGithubReleaser = require('conventional-github-releaser')

module.exports = (gulp, done) => {
if ($.util.env.changelog === false) {
$.util.log('Skipping github release')
return done()
}

const token = process.env.GH_TOKEN || $.util.env.token

if (!token) {
Expand Down

0 comments on commit ced51fe

Please sign in to comment.