Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zyao89 committed Nov 27, 2023
1 parent 928019f commit f3f7b3e
Show file tree
Hide file tree
Showing 4 changed files with 4,339 additions and 4,275 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deploy.yml
Expand Up @@ -10,17 +10,22 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: Setup
uses: actions/setup-node@master
with:
node-version: 16

- name: Install
run: npm install
run: yarn

- name: Build
run: npm run-script build
run: yarn run build
env:
GAID: ${{ secrets.GAID }}
GITHUB_CLIENT_ID: ${{ secrets.GITHUB_CLIENT_ID }}
GITHUB_CLIENT_SECRET: ${{ secrets.GITHUB_CLIENT_SECRET }}

- name: Deploy
run: npm run-script deploy
run: yarn run deploy
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -54,6 +54,6 @@
},
"dependencies": {
"@micro-app/cli": "^0.4.2",
"@micro-app/plugin-vuepress": "^0.3.13"
"@micro-app/plugin-vuepress": "^0.3.15"
}
}
14 changes: 12 additions & 2 deletions test/bin.test.js
Expand Up @@ -5,14 +5,24 @@ process.env.MICRO_APP_TEST = 'true';

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

it('dev run docs', () => {
it('help run', async () => {

try {
require('../bin/micro-app-vuepress');
const { service } = require('@micro-app/cli');
await service.run('vuepress');
} catch (error) {
console.warn(error);
}
});

it('dev run docs', async () => {

try {
const { service } = require('@micro-app/cli');
await service.run('vuepress', { _: [ 'dev', 'docs' ] });
} catch (error) {
console.warn(error);
}
});

});

0 comments on commit f3f7b3e

Please sign in to comment.