Skip to content

Commit b5d47bb

Browse files
authored
Merge pull request #29 from simon360/ci/switch-to-travis
ci: add Travis configuration
2 parents a862ee9 + e26999c commit b5d47bb

File tree

4 files changed

+26
-79
lines changed

4 files changed

+26
-79
lines changed

.circleci/config.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: node_js
2+
node_js:
3+
- "10"
4+
5+
script:
6+
- yarn compile
7+
- yarn docz:build
8+
9+
deploy:
10+
- provider: pages
11+
skip-cleanup: true
12+
github-token: $GITHUB_TOKEN
13+
keep-history: true
14+
local-dir: .docz/dist
15+
on:
16+
branch: master
17+
- provider: script
18+
script: bash scripts/publish.sh
19+
skip-cleanup: true
20+
on:
21+
tags: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"lint": "npm-run-all lint:*",
1515
"lint:ts": "tslint -c tslint.json './packages/**/*.ts*(x)'",
1616
"release": "lerna version prerelease",
17+
"pretest": "npm-run-all lint",
1718
"test": "echo \"Tests coming soon. I'm aware that's not ideal.\""
1819
},
1920
"dependencies": {

scripts/publish.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
4+
./node_modules/.bin/lerna publish from-git --yes

0 commit comments

Comments
 (0)