2023-06-12 16:35:30 +09:00
|
|
|
name: API report (cherrypick.js)
|
2023-03-30 09:33:19 +09:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
report:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-10-19 19:35:13 +09:00
|
|
|
uses: actions/checkout@v4.1.1
|
2023-03-30 09:33:19 +09:00
|
|
|
|
|
|
|
- run: corepack enable
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
2023-10-30 12:43:29 +09:00
|
|
|
uses: actions/setup-node@v4.0.0
|
2023-03-30 09:33:19 +09:00
|
|
|
with:
|
2023-04-15 10:20:39 +09:00
|
|
|
node-version-file: '.node-version'
|
2023-03-30 09:33:19 +09:00
|
|
|
cache: 'pnpm'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm i --frozen-lockfile
|
|
|
|
|
|
|
|
- name: Build
|
2023-06-12 16:35:30 +09:00
|
|
|
run: pnpm --filter cherrypick-js build
|
2023-03-30 09:33:19 +09:00
|
|
|
|
|
|
|
- name: Check files
|
2023-06-12 16:35:30 +09:00
|
|
|
run: ls packages/cherrypick-js/built
|
2023-03-30 09:33:19 +09:00
|
|
|
|
|
|
|
- name: API report
|
2023-06-12 16:35:30 +09:00
|
|
|
run: pnpm --filter cherrypick-js api-prod
|
2023-03-30 09:33:19 +09:00
|
|
|
|
|
|
|
- name: Show report
|
|
|
|
if: always()
|
2023-06-12 16:35:30 +09:00
|
|
|
run: cat packages/cherrypick-js/temp/cherrypick-js.api.md
|