Skip to content
This repository was archived by the owner on Oct 22, 2023. It is now read-only.

Commit 280def7

Browse files
committed
Restructure travis definition in order to utilize brand new build stages. (#5)
1 parent 5aa08c1 commit 280def7

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.travis.yml

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
language: node_js
2-
node_js:
1+
language: node
2+
node:
33
- "8"
44
- "6"
55
- "9"
66
- "4"
77
cache: yarn
88
git:
99
depth: 3
10-
script:
11-
- yarn validate-schema
12-
deploy:
13-
provider: npm
14-
15-
api_key: $NPM_API_KEY
16-
on:
17-
tags: true
18-
node: "8"
10+
jobs:
11+
include:
12+
- stage: test
13+
script: yarn validate-schema
14+
- stage: deploy
15+
if: tag IS present
16+
deploy:
17+
provider: npm
18+
19+
api_key: $NPM_API_KEY
20+
on:
21+
tags: true
22+
node: "8"

0 commit comments

Comments
 (0)