travis ci configuration for node js react project

Solutions on MaxInterview for travis ci configuration for node js react project by the best coders in the world

showing results for - "travis ci configuration for node js react project"
Valentín
22 Aug 2019
1language: node_js
2node_js:
3  - node
4env:
5  global:
6    # include $HOME/.local/bin for `aws`
7    - PATH=$HOME/.local/bin:$PATH
8before_install:
9  - pyenv global 3.7.1
10  - pip install -U pip
11  - pip install awscli
12script:
13  - yarn build
14  - echo "Commit sha - $TRAVIS_COMMIT"
15  - mkdir -p dist/@thawkin3/root-config/$TRAVIS_COMMIT
16  - mv dist/*.* dist/@thawkin3/root-config/$TRAVIS_COMMIT/
17deploy:
18  provider: s3
19  access_key_id: "$AWS_ACCESS_KEY_ID"
20  secret_access_key: "$AWS_SECRET_ACCESS_KEY"
21  bucket: "single-spa-demo"
22  region: "us-west-2"
23  cache-control: "max-age=31536000"
24  acl: "public_read"
25  local_dir: dist
26  skip_cleanup: true
27  on:
28    branch: master
29after_deploy:
30  - chmod +x after_deploy.sh
31  - "./after_deploy.sh"