Skip to content

Commit ced51fe

Browse files
feat(release): add --no-changelog option
1 parent 564e1d5 commit ced51fe

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ You can generate a changelog for all versions by using `--first`
160160
$ aegir-relase --first
161161
```
162162

163+
You can skip all changelog generation and the github release by passing
164+
in `--no-changelog`.
165+
163166
## Other Notes
164167

165168
There is a badge.

tasks/release/changelog.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
const $ = require('gulp-load-plugins')()
44

55
module.exports = (gulp, done) => {
6+
if ($.util.env.changelog === false) {
7+
$.util.log('Skipping changelog generation')
8+
return done()
9+
}
10+
611
const releaseCount = $.util.env.first ? 0 : 1
712

813
return gulp.src('CHANGELOG.md')

tasks/release/github.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ const $ = require('gulp-load-plugins')()
44
const conventionalGithubReleaser = require('conventional-github-releaser')
55

66
module.exports = (gulp, done) => {
7+
if ($.util.env.changelog === false) {
8+
$.util.log('Skipping github release')
9+
return done()
10+
}
11+
712
const token = process.env.GH_TOKEN || $.util.env.token
813

914
if (!token) {

0 commit comments

Comments
 (0)