diff --git a/.travis.yml b/.travis.yml index 6cb49517..a766af48 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: node_js node_js: - 12 - 10 - - 8.15 + - 8.16 # Trigger a push build on release and greenkeeper branches + PRs build on every branches # Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) diff --git a/README.md b/README.md index f539dd8a..0c66424d 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ With this example: - the shell command `./verify.sh` will be executed on the [verify conditions step](https://github.com/semantic-release/semantic-release#release-steps) - the shell command `./publish.sh 1.0.0 master 3 870668040000` (for the release of version `1.0.0` from branch `master` with `3` commits on `August 4th, 1997 at 2:14 AM`) will be executed on the [publish step](https://github.com/semantic-release/semantic-release#release-steps) +**Note**: it's required to define a plugin for the [analyze commits step](https://github.com/semantic-release/semantic-release#release-steps). If no [analyzeCommitsCmd](#analyzecommitscmd) is defined the plugin [@semantic-release/commit-analyzer](https://github.com/semantic-release/commit-analyzer) must be defined in the `plugins` list. + ## Configuration ### Options diff --git a/lib/exec.js b/lib/exec.js index 63c32b85..ad621acb 100644 --- a/lib/exec.js +++ b/lib/exec.js @@ -10,14 +10,8 @@ module.exports = async (cmdProp, {shell, execCwd, ...config}, {cwd, env, stdout, const result = execa(script, {shell: shell || true, cwd: execCwd ? path.resolve(cwd, execCwd) : cwd, env}); - result.stdout.pipe( - stdout, - {end: false} - ); - result.stderr.pipe( - stderr, - {end: false} - ); + result.stdout.pipe(stdout, {end: false}); + result.stderr.pipe(stderr, {end: false}); return (await result).stdout.trim(); }; diff --git a/package.json b/package.json index 53fc59b6..f344dffe 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@semantic-release/error": "^2.1.0", "aggregate-error": "^3.0.0", "debug": "^4.0.0", - "execa": "^3.0.0", + "execa": "^3.2.0", "lodash": "^4.17.4", "parse-json": "^5.0.0" }, @@ -28,7 +28,7 @@ "xo": "^0.25.0" }, "engines": { - "node": ">=8.15" + "node": ">=8.16" }, "files": [ "lib",