forked from szdc/tiktok-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (38 loc) · 792 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
39
40
41
language: node_js
node_js:
- "lts/*"
cache:
directories:
- "node_modules"
stages:
- test
- name: deploy
if: tag IS present
jobs:
include:
- stage: test
script:
- npm run lint
- npm run type-check
- npm run test-with-coverage
- npm run build
after_success:
- npm run coverage
- stage: deploy
script:
- npm run build
- npm pack
deploy:
- provider: releases
api_key: "${GITHUB_TOKEN}"
file_glob: true
file: "tiktok-api-*.tgz"
skip_cleanup: true
on:
tags: true
- provider: npm
email: "${NPM_EMAIL}"
api_key: "${NPM_TOKEN}"
skip_cleanup: true
on:
tags: true