-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (45 loc) · 960 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
43
44
45
46
47
48
49
50
51
52
sudo: required
language: node_js
node_js:
- 14
cache:
directories:
- node_modules
before_script:
- npm test
script:
- npm run build
before_deploy:
- VERSION=''
- BASE_DIRECTORY="public"
- 'if [ -n "$TRAVIS_TAG" ]; then
VERSION=$TRAVIS_TAG;
RELEASE_DIRECTORY="$BASE_DIRECTORY/$VERSION";
fi'
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: $S3_BUCKET
skip_cleanup: true
local_dir: dist
upload-dir: $RELEASE_DIRECTORY
on:
tags: true
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: $S3_BUCKET
skip_cleanup: true
local_dir: dist
upload-dir: $BASE_DIRECTORY/latest
on:
tags: true
- provider: npm
email: "[email protected]"
api_key: $NPM_TOKEN
skip_cleanup: true
tag: latest
on:
tags: true
repo: Teamwork/public-components