Skip to content

Commit

Permalink
[fix] 3 detail Publishing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Sep 16, 2023
1 parent 4601dd9 commit c50f910
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
push:
tags:
- v*
- type-v*
env:
ARTIFACT_PATH: /tmp/artifact.tar
BOX_NAME: kys-service
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
node-version: 18
registry-url: https://npm.pkg.github.com
cache: pnpm
- name: Install Dependencies
run: cd type/ && pnpm i

- name: Build & Publish
run: npm publish
- name: Install, Build & Publish
run: |
cd type/
pnpm i
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion src/controller/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type {} from 'koa2-swagger-ui';
import { createAPI } from 'koagger';

import { CheckEventController } from './CheckEvent';
import { CrawlerController } from './Crawler';
import { SessionController } from './Session';

export const { router, swagger, mocker } = createAPI({
mock: true,
controllers: [CrawlerController, SessionController]
controllers: [SessionController, CheckEventController, CrawlerController]
});
4 changes: 3 additions & 1 deletion type/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"dependencies": {
"@types/jsonwebtoken": "^9.0.3",
"@types/koa": "^2.13.9",
"mobx-restful": "^0.6.11",
"mobx-restful": "^0.6.11"
},
"peerDependencies": {
"web-fetch": "^1.3.2"
}
}

0 comments on commit c50f910

Please sign in to comment.