Skip to content

Commit f3f7b3e

Browse files
committed
feat: update
1 parent 928019f commit f3f7b3e

File tree

4 files changed

+4339
-4275
lines changed

4 files changed

+4339
-4275
lines changed

.github/workflows/deploy.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@master
1212

13+
- name: Setup
14+
uses: actions/setup-node@master
15+
with:
16+
node-version: 16
17+
1318
- name: Install
14-
run: npm install
19+
run: yarn
1520

1621
- name: Build
17-
run: npm run-script build
22+
run: yarn run build
1823
env:
1924
GAID: ${{ secrets.GAID }}
2025
GITHUB_CLIENT_ID: ${{ secrets.GITHUB_CLIENT_ID }}
2126
GITHUB_CLIENT_SECRET: ${{ secrets.GITHUB_CLIENT_SECRET }}
2227

2328
- name: Deploy
24-
run: npm run-script deploy
29+
run: yarn run deploy
2530
env:
2631
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@
5454
},
5555
"dependencies": {
5656
"@micro-app/cli": "^0.4.2",
57-
"@micro-app/plugin-vuepress": "^0.3.13"
57+
"@micro-app/plugin-vuepress": "^0.3.15"
5858
}
5959
}

test/bin.test.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,24 @@ process.env.MICRO_APP_TEST = 'true';
55

66
describe('VuePress Bin test', () => {
77

8-
it('dev run docs', () => {
8+
it('help run', async () => {
99

1010
try {
11-
require('../bin/micro-app-vuepress');
11+
const { service } = require('@micro-app/cli');
12+
await service.run('vuepress');
1213
} catch (error) {
1314
console.warn(error);
1415
}
16+
});
17+
18+
it('dev run docs', async () => {
1519

20+
try {
21+
const { service } = require('@micro-app/cli');
22+
await service.run('vuepress', { _: [ 'dev', 'docs' ] });
23+
} catch (error) {
24+
console.warn(error);
25+
}
1626
});
1727

1828
});

0 commit comments

Comments
 (0)