-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (41 loc) · 1.13 KB
/
.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
42
43
44
45
46
47
dist: bionic
language: node_js
node_js:
- 14.16.0
cache:
yarn: true
env:
global:
- PATH="$HOME/.yarn/bin:$PATH"
- YARN_VERSION="1.9.4"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "${YARN_VERSION}"
install:
- yarn install --frozen-lockfile
jobs:
include:
# Install dependencies and save them to the Travis cache
- stage: "Prepare cache"
# Don't run `script`, just install dependencies
before_script: skip
script: skip
# Run tests
- stage: "Test"
name: "Lint"
script: yarn run lint
- name: "Type Checking"
script: yarn run typecheck
- name: "Unit Tests"
script: yarn run test:unit
- stage: "Publish to registry"
if: tag =~ ^v
script: skip
deploy:
provider: npm
email: [email protected]
api_token:
secure: "CnTzlw3eI2Kw5dqjSrLDP1th6RTP/+V/QE0KTqO87LOn1DnLmUA6KiR5b2EWWSdJSNjeF7mmAeZTQW8ISIaCpqvqJBj7NOGpm5Ti2XQIzclNf/zqtCXqumR1lbpGAXsnsAfJlhLjr8WU5S6CSBqfB8kw5qBfP0zKSUAFluXToFI="
skip_cleanup: true
on:
tags: true
all_branches: true