Skip to content

Commit

Permalink
chore(ci): Setup semantic-release (#247)
Browse files Browse the repository at this point in the history
* chore(ci): setup semantic-release

* run semantic-release only for push event to master branch and only for node 12 CI runs.
  • Loading branch information
limonte authored and johnjbarton committed Jan 9, 2020
1 parent 8df9848 commit 9b6e5f8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -14,4 +14,11 @@ before_script:
script:
- grunt && ./integration-tests.sh

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;

cache: npm
21 changes: 21 additions & 0 deletions release.config.js
@@ -0,0 +1,21 @@
module.exports = {
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'
]
}

0 comments on commit 9b6e5f8

Please sign in to comment.