Skip to content

Commit

Permalink
chore(travis): activate semantic-release on node-12 test success (#3423)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjbarton authored Feb 14, 2020
1 parent 79ee331 commit ad777f0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ before_script:
- 'if [ "$LINT" == "true" ]; then npm run lint; fi'

script:
- npm run travis
- 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;

This comment has been minimized.

Copy link
@Den-dp

Den-dp Apr 1, 2020

@johnjbarton I guess this can be simplified with

npx -p semantic-release@15 -p @semantic-release/changelog@3 -p @semantic-release/git@7 semantic-release

This comment has been minimized.

Copy link
@johnjbarton

johnjbarton Apr 1, 2020

Author Contributor

Thanks! To be sure, we don't even exercise this code yet because the post-commit "push" continuous integration tests never succeed on browserstack browser capture :-(

fi;
22 changes: 22 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -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'
]
}

0 comments on commit ad777f0

Please sign in to comment.