diff --git a/.travis.yml b/.travis.yml index 47202894d..bf0619e0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,4 +43,11 @@ before_script: - 'if [ "$LINT" == "true" ]; then npm run lint; fi' script: - - npm run travis \ No newline at end of file + - npm run travis + +after_success: + # run automated release process with semantic-release + - if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_NODE_VERSION" == "12" ]]; then + npm i --no-save semantic-release@15 @semantic-release/changelog@3 @semantic-release/git@7; + semantic-release; + fi; \ No newline at end of file diff --git a/release.config.js b/release.config.js new file mode 100644 index 000000000..595c922e2 --- /dev/null +++ b/release.config.js @@ -0,0 +1,22 @@ +module.exports = { + // Add logging for releases until we are fully confident of the release solution. + debug: true, + branch: 'master', + verifyConditions: [ + '@semantic-release/changelog', + '@semantic-release/npm', + '@semantic-release/github' + ], + prepare: [ + '@semantic-release/changelog', + '@semantic-release/npm', + '@semantic-release/git' + ], + publish: [ + '@semantic-release/npm', + '@semantic-release/github' + ], + success: [ + '@semantic-release/github' + ] +}