-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
42 lines (41 loc) · 1.05 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
language: node_js
dist: focal
node_js:
- '18'
before_install:
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > packages/components/.npmrc
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > packages/portal-style/.npmrc
before_script:
- yarn
script:
- yarn test
- yarn build
- yarn build-storybook
- ./bin/travis-prep-website.sh
cache:
directories:
- .npm
- node_modules
- packages/portal-style/website/node_modules
- packages/portal-style/node_modules
before_deploy:
- yes | gem update --system --force
- gem install bundler
- gem install uri
- gem install faraday-net_http -v '3.3.0' # Fix faraday version
- gem install logger
deploy:
- provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
keep-history: true
local-dir: target/portal-components
on:
branch: develop
- provider: script
skip_cleanup: true
script: npm run publish-npm -- $(node bin/lerna-version.js)
on:
tags: true
branch: develop