-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
42 lines (38 loc) · 898 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
42
sudo: false
language: node_js
node_js:
- "13"
- "12"
- "10"
before_script:
- npm install
script:
- npm run lint
- npm run build
- npm run node-test
before_deploy:
- mkdir -p exif-library/dist
- cp ./dist/exif-library.js ./exif-library/dist
- cp ./dist/exif-library.js.map ./exif-library/dist
- cp ./dist/*.d.ts ./exif-library/dist
- cp ./README.md ./exif-library/
- cp ./package.json ./exif-library/
- cp ./LICENSE.txt ./exif-library/
- zip -r exif-library.zip ./exif-library
- rm -rf exif-library
deploy:
- provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file: exif-library.zip
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_NODE_VERSION = 10
- provider: npm
email: "${NPM_MYMAIL}"
api_key: "${NPM_TOKEN}"
skip_cleanup: true
tag: beta
on:
tags: true
condition: $TRAVIS_NODE_VERSION = 10