-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (41 loc) · 1.53 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
language: node_js
node_js:
- "node"
- "10"
- "8"
- "6"
cache: yarn
install: yarn
script: yarn test
before_deploy:
# Write the authentication token to .npmrc right before we're about to deploy.
# We cannot check this file in because then it'll try to authenticate on yarn install.
# And that is bad because $NPM_TOKEN isn't available in all PRs
# (see https://docs.travis-ci.com/user/pull-requests/#Pull-Requests-and-Security-Restrictions).
# We only need the token for publishing the package so we'll create the .npmrc file right before.
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
deploy:
# Deploy new version of eslint-config-eventbrite-legacy (but only on the "node" test matrix)
- provider: script
skip_cleanup: true
script: npm publish packages/eslint-config-eventbrite-legacy
on:
tags: true
condition: $TRAVIS_TAG =~ ^eslint-config-eventbrite-legacy-v.+$
node: "node"
# Deploy new version of eslint-config-eventbrite (but only on the "node" test matrix)
- provider: script
skip_cleanup: true
script: npm publish packages/eslint-config-eventbrite
on:
tags: true
condition: $TRAVIS_TAG =~ ^eslint-config-eventbrite-v.+$
node: "node"
# Deploy new version of eslint-config-eventbrite-react (but only on the "node" test matrix)
- provider: script
skip_cleanup: true
script: npm publish packages/eslint-config-eventbrite-react
on:
tags: true
condition: $TRAVIS_TAG =~ ^eslint-config-eventbrite-react-v.+$
node: "node"