Skip to content

Commit cc10f7c

Browse files
committed
fix: use yarn instead of npm
1 parent 7b11e53 commit cc10f7c

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

circle.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ machine:
22
timezone: UTC
33
node:
44
version: 7.7.1
5+
environment:
6+
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
7+
8+
dependencies:
9+
override:
10+
- yarn
11+
cache_directories:
12+
- ~/.cache/yarn
13+
514
deployment:
615
production:
716
branch: master
@@ -11,7 +20,12 @@ deployment:
1120
- ./node_modules/.bin/hexo clean
1221
- ./node_modules/.bin/hexo generate
1322
- ./node_modules/.bin/hexo deploy
23+
1424
general:
1525
branches:
1626
ignore:
1727
- gh-pages
28+
29+
test:
30+
override:
31+
- yarn test

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
},
88
"scripts": {
99
"test": "yarn run lint",
10-
"lint": "textlint source/**/*.md -f pretty-error",
11-
"lint:fix": "textlint --fix source/**/*.md -f pretty-error"
10+
"lint": "textlint source/**/*.md -f pretty-error"
1211
},
1312
"dependencies": {
1413
"hexo": "^3.2.2",

0 commit comments

Comments
 (0)