Skip to content

Commit 29b887d

Browse files
committed
💚 fix travis ci error
1 parent e1350b7 commit 29b887d

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.travis.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
11
language: node_js
22
node_js:
3-
- 8
3+
- lts/*
4+
install:
5+
- yarn install
46
cache:
57
directories:
68
- node_modules
79
script:
8-
- npm run lint
10+
- yarn lint
911

1012
after_success:
11-
- npm run codecov
13+
- yarn codecov
14+
15+
before_deploy: |
16+
function npm_dist_tag() {
17+
if [[ "$TRAVIS_TAG" = *"-"* ]]; then
18+
echo "next"
19+
else
20+
echo "latest"
21+
fi
22+
}
1223
1324
deploy:
25+
edge: true
1426
provider: npm
1527
1628
api_key: $NPM_AUTH_TOKEN
1729
skip_cleanup: true
1830
on:
1931
tags: true
32+
tag: $(npm_dist_tag)
33+

0 commit comments

Comments
 (0)