-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(travis): activate semantic-release on node-12 test success (#3423)
- Loading branch information
1 parent
79ee331
commit ad777f0
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
johnjbarton
Author
Contributor
|
||
fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
] | ||
} |
@johnjbarton I guess this can be simplified with