Skip to content

Commit cf66da0

Browse files
committed
chore: upgrade semantic-release
1 parent 390979d commit cf66da0

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.travis.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ node_js:
88
- '8'
99
- '6'
1010
- '4'
11-
before_script:
12-
- npm prune
13-
after_success:
14-
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" || echo "Not master" && exit 0
15-
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
16-
- npm run semantic-release
11+
env:
12+
- BUILD_LEADER_ID=4
1713
branches:
1814
except:
1915
- /^v\d+\.\d+\.\d+$/
16+
before_script:
17+
- npm prune
18+
jobs:
19+
include:
20+
- stage: release
21+
node_js: 8
22+
os: linux
23+
after_success:
24+
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false"
25+
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
26+
- npm run semantic-release
27+

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lint": "xo",
2727
"pretest": "npm run -s lint",
2828
"test": "mocha -R spec src/**/*_test.js",
29-
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
29+
"semantic-release": "semantic-release",
3030
"commitmsg": "commitlint -e"
3131
},
3232
"dependencies": {
@@ -43,7 +43,7 @@
4343
"@commitlint/config-angular": "^3.1.1",
4444
"husky": "^0.14.3",
4545
"mocha": "~2.0.1",
46-
"semantic-release": "^7.0.2",
46+
"semantic-release": "^12.4.1",
4747
"should": "^4.0.4",
4848
"strip-color": "^0.1.0",
4949
"xo": "^0.13.0"

0 commit comments

Comments
 (0)