Skip to content

Commit 571f179

Browse files
committed
ci: update semantic-release
Hoping that setting everything up again with a newer version will fix the issue where Travis was not publishing to npm (invalid npm token).
1 parent 851a9b1 commit 571f179

File tree

3 files changed

+4549
-646
lines changed

3 files changed

+4549
-646
lines changed

.travis.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
language: node_js
22
cache:
33
yarn: true
4+
directories:
5+
- ~/.npm
46
notifications:
57
email: false
68
node_js:
7-
- 8
8-
- 6
9-
- 4
10-
before_install:
11-
- yarn global add greenkeeper-lockfile@1
12-
before_script:
13-
- greenkeeper-lockfile-update
14-
- npm prune || true
15-
script:
16-
- yarn test
17-
after_script:
18-
- greenkeeper-lockfile-upload
9+
- '10'
10+
- '8'
11+
- '6'
1912
after_success:
20-
- npm run semantic-release
13+
- npm run travis-deploy-once "npm run semantic-release"
2114
branches:
2215
except:
2316
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"build": "tsc -p tsconfig.json",
1414
"lint": "tslint 'src/**/*.ts'",
1515
"test": "jest --env=node",
16-
"predocs": "rm -rf docs/",
17-
"prepublish": "npm run build",
18-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
16+
"prepublishOnly": "npm run build",
17+
"semantic-release": "semantic-release",
18+
"travis-deploy-once": "travis-deploy-once"
1919
},
2020
"repository": {
2121
"type": "git",
@@ -42,7 +42,8 @@
4242
"jest": "^21.2.1",
4343
"lint-staged": "^4.0.0",
4444
"prettier": "^1.14.3",
45-
"semantic-release": "^6.3.6",
45+
"semantic-release": "^15.9.17",
46+
"travis-deploy-once": "^5.0.9",
4647
"ts-jest": "^21.1.3",
4748
"tslint": "^5.11.0",
4849
"tslint-config-prettier": "^1.15.0",

0 commit comments

Comments
 (0)