File tree 4 files changed +4339
-4275
lines changed
4 files changed +4339
-4275
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,22 @@ jobs:
10
10
- name : Checkout
11
11
uses : actions/checkout@master
12
12
13
+ - name : Setup
14
+ uses : actions/setup-node@master
15
+ with :
16
+ node-version : 16
17
+
13
18
- name : Install
14
- run : npm install
19
+ run : yarn
15
20
16
21
- name : Build
17
- run : npm run-script build
22
+ run : yarn run build
18
23
env :
19
24
GAID : ${{ secrets.GAID }}
20
25
GITHUB_CLIENT_ID : ${{ secrets.GITHUB_CLIENT_ID }}
21
26
GITHUB_CLIENT_SECRET : ${{ secrets.GITHUB_CLIENT_SECRET }}
22
27
23
28
- name : Deploy
24
- run : npm run-script deploy
29
+ run : yarn run deploy
25
30
env :
26
31
ACCESS_TOKEN : ${{ secrets.ACCESS_TOKEN }}
Original file line number Diff line number Diff line change 54
54
},
55
55
"dependencies" : {
56
56
"@micro-app/cli" : " ^0.4.2" ,
57
- "@micro-app/plugin-vuepress" : " ^0.3.13 "
57
+ "@micro-app/plugin-vuepress" : " ^0.3.15 "
58
58
}
59
59
}
Original file line number Diff line number Diff line change @@ -5,14 +5,24 @@ process.env.MICRO_APP_TEST = 'true';
5
5
6
6
describe ( 'VuePress Bin test' , ( ) => {
7
7
8
- it ( 'dev run docs' , ( ) => {
8
+ it ( 'help run' , async ( ) => {
9
9
10
10
try {
11
- require ( '../bin/micro-app-vuepress' ) ;
11
+ const { service } = require ( '@micro-app/cli' ) ;
12
+ await service . run ( 'vuepress' ) ;
12
13
} catch ( error ) {
13
14
console . warn ( error ) ;
14
15
}
16
+ } ) ;
17
+
18
+ it ( 'dev run docs' , async ( ) => {
15
19
20
+ try {
21
+ const { service } = require ( '@micro-app/cli' ) ;
22
+ await service . run ( 'vuepress' , { _ : [ 'dev' , 'docs' ] } ) ;
23
+ } catch ( error ) {
24
+ console . warn ( error ) ;
25
+ }
16
26
} ) ;
17
27
18
28
} ) ;
You can’t perform that action at this time.
0 commit comments