2023-03-16 20:07:16 +00:00
|
|
|
name: API report
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
report:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-03-16 20:13:21 +00:00
|
|
|
uses: actions/checkout@v3.3.0
|
2023-03-16 20:07:16 +00:00
|
|
|
|
|
|
|
- name: Setup Node.js
|
2023-03-16 20:13:21 +00:00
|
|
|
uses: actions/setup-node@v3.6.0
|
2023-03-16 20:07:16 +00:00
|
|
|
with:
|
2023-03-16 20:13:21 +00:00
|
|
|
node-version: 18.x
|
|
|
|
cache: 'pnpm'
|
2023-03-16 20:07:16 +00:00
|
|
|
|
2023-03-16 20:13:21 +00:00
|
|
|
- run: corepack enable
|
2023-03-16 20:07:16 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2023-03-16 20:13:21 +00:00
|
|
|
run: pnpm i --frozen-lockfile
|
2023-03-16 20:07:16 +00:00
|
|
|
|
|
|
|
- name: Build
|
2023-03-16 20:13:21 +00:00
|
|
|
run: pnpm --filter misskey-js build
|
2023-03-16 20:07:16 +00:00
|
|
|
|
|
|
|
- name: Check files
|
2023-03-16 20:13:21 +00:00
|
|
|
run: ls packages/misskey-js/built
|
2023-03-16 20:07:16 +00:00
|
|
|
|
|
|
|
- name: API report
|
2023-03-16 20:13:21 +00:00
|
|
|
run: pnpm --filter misskey-js api-prod
|
2023-03-16 20:07:16 +00:00
|
|
|
|
|
|
|
- name: Show report
|
|
|
|
if: always()
|
2023-03-16 20:13:21 +00:00
|
|
|
run: cat packages/misskey-js/temp/misskey-js.api.md
|