Skip to content

Commit

Permalink
fix: add semantic-release step if not mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 28, 2018
1 parent 7ea4f08 commit 143532c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/app/package-scripts.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,12 @@ if (process.env.CI) {
scripts.mocha.script = series(`${nyc} ${scripts.mocha.script}`, nycReport)
}
<%_ } else if (mocha) { _%>
if (process.env.CI) {
if (process.env.CIRCLECI) {
scripts.release = 'semantic-release -e @dxcli/dev-semantic-release'
}
}
<%_ } _%>
module.exports = {scripts}

0 comments on commit 143532c

Please sign in to comment.