Skip to content

Commit

Permalink
fix: use git add when not using semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 7, 2018
1 parent b4665f5 commit b66c1e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generators/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ class App extends Generator {
this.pjson.scripts.prepublishOnly = 'yarn run build'
}
if (['plugin', 'multi'].includes(this.type)) {
this.pjson.scripts.prepublishOnly = nps.series(this.pjson.scripts.prepublishOnly, 'anycli-dev manifest', 'anycli-dev readme')
this.pjson.scripts.prepublishOnly = nps.series(this.pjson.scripts.prepublishOnly, 'anycli-dev manifest')
if (this.semantic_release) this.pjson.scripts.prepublishOnly = nps.series(this.pjson.scripts.prepublishOnly, 'anycli-dev readme')
else this.pjson.scripts.version = nps.series('anycli-dev readme', 'git add README.md')
this.pjson.scripts.postpublish = 'rm .anycli.manifest.json'
this.pjson.files.push('.anycli.manifest.json')
}
Expand Down

0 comments on commit b66c1e9

Please sign in to comment.