2023-06-12 16:35:30 +09:00
|
|
|
name: API report (cherrypick.js)
|
2023-03-30 09:33:19 +09:00
|
|
|
|
2024-01-08 23:51:31 +09:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2024-01-10 17:30:21 +09:00
|
|
|
- packages/cherrypick-js/**
|
2024-01-08 23:51:31 +09:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2024-01-10 17:30:21 +09:00
|
|
|
- packages/cherrypick-js/**
|
2023-03-30 09:33:19 +09:00
|
|
|
|
|
|
|
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
|
2024-02-16 16:33:01 +09:00
|
|
|
uses: actions/setup-node@v4.0.2
|
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
|