forked from joelnet/MojiScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (35 loc) · 880 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: node_js
node_js:
- "10.3.0"
addons:
ssh_known_hosts:
- github.com
stages:
- build
- test
- name: deploy
if: (NOT type IN (pull_request)) AND (branch = master)
jobs:
include:
- stage: build
node_js:
- "10.3.0"
script:
- npm run build
- stage: test
node_js:
- "10.3.0"
script:
- npm run test:coveralls
- stage: deploy
node_js:
- "10.3.0"
script:
- echo -e "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN\n" > ~/.npmrc
- echo -e "machine github.com\n login $CI_USER\n password $CI_USER_PASSWORD\n" > ~/.netrc
- npm version patch -m "Version %s [skip ci]"
- git push origin HEAD:master
- git push --tags
- npm run patch-readme --silent > NEW-README.md
- mv NEW-README.md README.md
- npm publish