20 lines
714 B
YAML
20 lines
714 B
YAML
name: Build PR Documentation
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@90b4ee2c10b81b5c1a6367c4e6fc9e2fb510a7e3 # main
|
|
with:
|
|
commit_sha: ${{ github.sha }}
|
|
pr_number: ${{ github.event.number }}
|
|
package: transformers.js
|
|
path_to_docs: transformers.js/packages/transformers/docs/source
|
|
pre_command: cd transformers.js && corepack enable && ONNXRUNTIME_NODE_INSTALL=skip pnpm install --frozen-lockfile && pnpm --filter @huggingface/transformers docs-api
|
|
additional_args: --not_python_module
|