Skip to content

Commit ad777f0

Browse files
authored
chore(travis): activate semantic-release on node-12 test success (#3423)
1 parent 79ee331 commit ad777f0

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.travis.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,11 @@ before_script:
4343
- 'if [ "$LINT" == "true" ]; then npm run lint; fi'
4444

4545
script:
46-
- npm run travis
46+
- npm run travis
47+
48+
after_success:
49+
# run automated release process with semantic-release
50+
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_NODE_VERSION" == "12" ]]; then
51+
npm i --no-save semantic-release@15 @semantic-release/changelog@3 @semantic-release/git@7;
52+
semantic-release;
53+
fi;

release.config.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
// Add logging for releases until we are fully confident of the release solution.
3+
debug: true,
4+
branch: 'master',
5+
verifyConditions: [
6+
'@semantic-release/changelog',
7+
'@semantic-release/npm',
8+
'@semantic-release/github'
9+
],
10+
prepare: [
11+
'@semantic-release/changelog',
12+
'@semantic-release/npm',
13+
'@semantic-release/git'
14+
],
15+
publish: [
16+
'@semantic-release/npm',
17+
'@semantic-release/github'
18+
],
19+
success: [
20+
'@semantic-release/github'
21+
]
22+
}

0 commit comments

Comments
 (0)