Skip to content

Commit d7336d4

Browse files
committed
chore: auto release to npm only version tags
1 parent 9939d51 commit d7336d4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.travis.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
sudo: false
2-
dist: trusty
1+
os: linux
2+
dist: xenial
33

44
language: node_js
55

@@ -19,3 +19,12 @@ install:
1919

2020
script:
2121
- npm test
22+
23+
deploy:
24+
provider: npm
25+
email: $NPM_EMAIL
26+
api_key: $NPM_TOKEN
27+
on:
28+
branch: master
29+
tags: true
30+
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$

0 commit comments

Comments
 (0)