Skip to content

Commit e1275ef

Browse files
committed
chore: update travis build config
1 parent f9a7c48 commit e1275ef

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.travis.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
language: node_js
22
node_js:
33
- "10"
4-
4+
os: linux
5+
dist: xenial
6+
arch: amd64
57
cache:
68
directories:
79
- node_modules
8-
910
jobs:
1011
include:
1112
- stage: test
1213
install:
1314
- npm install
1415
script:
1516
- npm run test:ci
17+
- stage: release
18+
install:
19+
- npm install
20+
script:
21+
- npm run prepublishOnly
22+
deploy:
23+
provider: npm
24+
25+
api_key:
26+
secure: npdpG0sNovdDNHNlnClzkHWkvMQqpAiSEukUVw3fVRYerENzdvI9rdz5KSrdztDsQADlyYeNHXNjnoAx81nSEZAA9XvA20W+Gaf114MIWfz80dcCb/qKwDAKaXM6SZYo1XZqEvqYRkKeXYAR4T6HIrMF8JZCwJZacR2MCoX2gywFheT3IB43JOkYrSDr/czdkwM3Ar3PY8QXz+JhBt/WuMS/fHZm4X5oAa6TCUH68jfPdzc4g6+IEnYagDbYmqDwnHuxmPqSGFijjynDrZgnM2KiQCZzVAufGccy+8xTgywrEShnKJF5xO/S+CG3Sn/jX53ib56HKZ8D/BNapR9I8MLtcsqzHn1wTCIF/4jJ26h5Ka3LPPaOfNwZboBbslOYIReS1wHoTBDogS37MaMo56S5f4It+lCARUuCQ9ToKp5ZRJatJRymtupa0TmaKycBDrhTyAMtxaNcFfnD49OD0FJTOl8vokOiy7fp74mi9A2KZdx0YO6QrmuVMf7uvBCXldKsfm0GF3LK0mCypa/57mEp4gIgEwfAKkz+icUows2feTa8Js2KcFVXiXYnOOFktr+TmntbeBHPNGyvzLuslpszi7J6lF/+02ODwCQOeuXIDxU4N8//cQFz9ZA9+lZ1nf1BL6yi27uQciNTg9QN+Ticcx4qU0uByLupfwTgbHk=
27+
on:
28+
tags: true
29+
repo: NervJS/taro-ui
30+
branch: master
1631
- stage: deploy
17-
if: (branch = master) AND (NOT (type IN (pull_request)))
32+
if: "(branch = master) AND (NOT (type IN (pull_request)))"
1833
install:
1934
- npm install
2035
script:
@@ -26,7 +41,6 @@ jobs:
2641
- git add .
2742
- git commit -m "Update Document"
2843
- git push --force --quiet "https://${GITHUB_TOKEN}@${GH_REF}" master:gh-pages
29-
3044
env:
3145
global:
3246
- GH_REF: github.com/NervJS/taro-ui.git

0 commit comments

Comments
 (0)