File tree 1 file changed +39
-39
lines changed
1 file changed +39
-39
lines changed Original file line number Diff line number Diff line change 1
- # language: node_js
2
- # node_js:
3
- # # - lts/*
4
- # - 12
5
- # cache:
6
- # directories:
7
- # - node_modules
8
-
9
- # branches:
10
- # only:
11
- # - master
12
-
13
- # before_install:
14
- # - export TZ='Asia/Beijing'
15
- # install:
16
- # - npm install
17
-
18
- # script:
19
- # - npm run clear
20
- # - npm run build
21
-
22
- # after_script:
23
- # - cd ./build
24
- # - git init
25
- # - git config user.name "zhaocchen"
26
- # - git config user.email "[email protected] "
27
- # - git add .
28
- # - git commit -m "Travis CI Auto Builder at $(date +'%Y-%m-%d %H:%M:%S')"
29
- # - git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
30
-
31
-
32
1
language : node_js
33
2
node_js :
3
+ # - lts/*
34
4
- 12
5
+ cache :
6
+ directories :
7
+ - node_modules
8
+
35
9
branches :
36
10
only :
37
11
- master
38
- cache :
39
- yarn : true
12
+
13
+ before_install :
14
+ - export TZ='Asia/Beijing'
40
15
install :
41
- - yarn
42
- - nvm install 10
16
+ - npm install
17
+
43
18
script :
44
- - git config --global user.name "${GH_NAME}"
45
- - git config --global user.email "${GH_EMAIL}"
46
- - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
47
- - yarn && GIT_USER="${GH_NAME}" yarn deploy
19
+ - npm run clear
20
+ - npm run build
21
+
22
+ after_script :
23
+ - cd ./build
24
+ - git init
25
+ - git config user.name "zhaocchen"
26
+ -
git config user.email "[email protected] "
27
+ - git add .
28
+ - git commit -m "Travis CI Auto Builder at $(date +'%Y-%m-%d %H:%M:%S')"
29
+ - git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
30
+
31
+
32
+ # language: node_js
33
+ # node_js:
34
+ # - 12
35
+ # branches:
36
+ # only:
37
+ # - master
38
+ # cache:
39
+ # yarn: true
40
+ # install:
41
+ # - yarn
42
+ # - nvm install 10
43
+ # script:
44
+ # - git config --global user.name "${GH_NAME}"
45
+ # - git config --global user.email "${GH_EMAIL}"
46
+ # - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
47
+ # - yarn && GIT_USER="${GH_NAME}" yarn deploy
You can’t perform that action at this time.
0 commit comments