Skip to content

Add embedded.update(checkout) #24

Add embedded.update(checkout)

Add embedded.update(checkout) #24

name: Public API Check
on:
pull_request:
branches: [master]
paths:
- 'src/**'
- 'tsconfig.json'
- 'tsconfig.api-extractor.json'
- 'api-extractor.json'
- 'etc/**'
- 'package.json'
jobs:
api-check:
name: Check public API surface
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Get yarn cache directory
id: yarn-cache-dir
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
- name: Cache yarn
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build declarations
run: yarn bob build
- name: Check API report is up to date
run: yarn api-extractor run --verbose