Skip to content

Commit 47aa938

Browse files
committed
fix(ci): use yarn in travis
1 parent 57e73a2 commit 47aa938

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ node_js:
99
- '8'
1010
- '6'
1111
script:
12-
- npm run build
12+
- yarn build
1313
after_success:
14-
- npm run travis-deploy-once "npm run semantic-release"
15-
- npm run build-example
16-
- npm run deploy-example
14+
- yarn travis-deploy-once "yarn semantic-release"
15+
- yarn build-example
16+
- yarn deploy-example
1717
branches:
1818
except:
1919
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
"semantic-release": "semantic-release",
5353
"build": "rollup -c",
5454
"start": "rollup -c -w",
55-
"build-example": "cd example && npm install && npm run build",
56-
"deploy-example": "npm run build-example && gh-pages -d ./example/build",
57-
"analyze": "npm run build && webpack-bundle-analyzer dist/index.js"
55+
"build-example": "cd example && yarn && yarn build",
56+
"deploy-example": "gh-pages -d ./example/build",
57+
"analyze": "webpack-bundle-analyzer dist/index.js"
5858
},
5959
"files": [
6060
"dist"

0 commit comments

Comments
 (0)