-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
38 lines (38 loc) · 860 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
os: linux
dist: xenial
language: node_js
node_js:
- 12
env:
- NODE_ENV=development
before_install:
# update yarn and npm
- npm i npm -g
- npm i yarn -g
- echo "npm $(npm -v)" && echo "yarn $(yarn -v)"
# authenticate the registry
- npm config set "@pagedip:registry" "https://npm.pkg.github.com/"
- npm config set "//npm.pkg.github.com/:_authToken" "$GH_TOKEN"
- npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN"
stages:
- name: test
if: type = pull_request
- name: release
if: type = pull_request OR branch = master
jobs:
include:
- stage: test
script: yarn test
- stage: test
node_js: 10
script: yarn test
- stage: test
node_js: 14
script: yarn test
- stage: release
script: npm run autorelease -- --expanded
branches:
only:
- master
cache:
yarn: true