Skip to content

Commit

Permalink
fix: semantic-release in travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Aug 22, 2018
1 parent 2b3c864 commit 245e2a2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: node_js
node_js:
- "8"

sudo: false
sudo: required
dist: trusty

addons:
Expand All @@ -12,6 +12,10 @@ addons:
cache:
yarn: true

before_script:
- sudo chmod 4755 /opt/google/chrome/chrome-sandbox
- sudo chown root /opt/google/chrome/chrome-sandbox

env:
global:
# See https://git.io/vdao3 for details.
Expand Down Expand Up @@ -50,6 +54,12 @@ script:
# after_script:
# - ember sauce:disconnect

after_success:
- npm run travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/

deploy:
provider: npm
email: [email protected]
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each",
"semantic-release": "semantic-release"
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"engines": {
"node": "6.* || 8.* || >= 10.*"
Expand Down Expand Up @@ -41,7 +42,8 @@
"eslint-plugin-node": "^6.0.1",
"loader.js": "^4.2.3",
"qunit-dom": "^0.6.2",
"semantic-release": "^15.9.9"
"semantic-release": "^15.9.9",
"travis-deploy-once": "^5.0.2"
},
"keywords": [
"ember-addon",
Expand Down

0 comments on commit 245e2a2

Please sign in to comment.