monkeeShark/.github/workflows/api.yml

37 lines
716 B
YAML
Raw Permalink Normal View History

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:14:55 +00:00
- run: corepack enable
- name: Setup Node.js
2023-03-16 20:13:21 +00:00
uses: actions/setup-node@v3.6.0
with:
2023-03-16 20:13:21 +00:00
node-version: 18.x
cache: 'pnpm'
- name: Install dependencies
2023-03-16 20:13:21 +00:00
run: pnpm i --frozen-lockfile
- name: Build
2023-03-16 20:13:21 +00:00
run: pnpm --filter misskey-js build
- name: Check files
2023-03-16 20:13:21 +00:00
run: ls packages/misskey-js/built
- name: API report
2023-03-16 20:13:21 +00:00
run: pnpm --filter misskey-js api-prod
- name: Show report
if: always()
2023-03-16 20:13:21 +00:00
run: cat packages/misskey-js/temp/misskey-js.api.md