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

Commit 3d5173f

Browse files
committed
Add support for automatic publishing to the npm registry upon pushing tags. (#5)
1 parent f7fddb9 commit 3d5173f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.travis.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,17 @@ node_js:
77
cache: yarn
88
git:
99
depth: 3
10+
script:
11+
- yarn validate-schema
12+
1013
jobs:
1114
include:
12-
- stage: test
13-
script:
14-
- yarn validate-schema
15+
- stage: publish
16+
node_js: "8"
17+
script: echo "publish to npm"
18+
deploy:
19+
provider: npm
20+
21+
api_key: $NPM_API_KEY
22+
on:
23+
tags: true

0 commit comments

Comments
 (0)