Skip to content

Commit 5699a07

Browse files
author
Mike Pham
committed
fix: travis
1 parent c231b4c commit 5699a07

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎.travis.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
cache: yarn
1+
branches:
2+
except:
3+
- /^v\d+\.\d+\.\d+$/
4+
cache:
5+
directories:
6+
- ~/.npm
27
language: node_js
38
node_js:
49
- 'node'
@@ -21,7 +26,7 @@ jobs:
2126
- git checkout $TRAVIS_BRANCH
2227
- npm set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
2328
after_success:
24-
- yarn run travis-release
29+
- yarn run travis-deploy-once "yarn run semantic-release"
2530
after_failure:
2631
- ls -lah --color=auto
2732
after_success:

‎package.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"ts-node": "^7.0.0",
3030
"tslint": "^5.8.0",
3131
"tslint-config-standard": "^7.0.0",
32-
"typescript": "^2.6.1"
32+
"typescript": "^2.6.1",
33+
"travis-deploy-once": "^5.0.1"
3334
},
3435
"nyc": {
3536
"all": true,
@@ -72,6 +73,8 @@
7273
"pretypedefs": "yarn run build",
7374
"travis-coveralls": "cross-env DEBUG= nyc report --reporter=text-lcov | coveralls",
7475
"travis-release": "semantic-release pre && npm publish && semantic-release post",
75-
"travis-ssh": "set-up-ssh --key \"$encrypted_7baae619033b_key\" --iv \"$encrypted_7baae619033b_iv\" --path-encrypted-key \"deploy.enc\""
76+
"travis-ssh": "set-up-ssh --key \"$encrypted_7baae619033b_key\" --iv \"$encrypted_7baae619033b_iv\" --path-encrypted-key \"deploy.enc\"",
77+
"travis-deploy-once": "travis-deploy-once",
78+
"semantic-release": "semantic-release"
7679
}
7780
}

0 commit comments

Comments
 (0)