Skip to content

Commit cee4f3d

Browse files
committed
fix(ci): properly setup semantic-release for travis
1 parent b1c0028 commit cee4f3d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ cache:
55
notifications:
66
email: false
77
node_js:
8+
- '9'
89
- '8'
910
script:
1011
- npm run build
11-
- npm run test
1212
after_success:
13-
- npm run semantic-release
13+
- npm run travis-deploy-once "npm run semantic-release"
1414
branches:
1515
except:
1616
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"scripts": {
1414
"dev": "tsc --watch",
1515
"build": "tsc",
16-
"semantic-release": "semantic-release pre && yarn build && yarn publish && semantic-release post"
16+
"travis-deploy-once": "travis-deploy-once"
1717
},
1818
"devDependencies": {
1919
"@types/node": "^7.0.21",
2020
"prettier": "^1.7.4",
21-
"semantic-release": "^8.2.0",
22-
"typescript": "^2.3.2"
21+
"typescript": "^2.3.2",
22+
"travis-deploy-once": "^5.0.1"
2323
}
2424
}

0 commit comments

Comments
 (0)