mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-12-06 11:27:09 +00:00
Add TypeDoc (0.28.20) and `yarn docs`, which builds the reference for the nine public API packages from src/ into build-docs/, with a landing page and a getting-started guide whose examples were run against the live network. The PR workflow builds it so a broken doc comment or config is caught before merge. docs/ held only a redirect to polkadot.js.org; it now holds the guide sources. The README, packages/api/README.md and three CHANGELOG entries linked to js.pezkuwichain.app, a domain that is not ours and is listed for sale; they now point to developers.pezkuwichain.io, the Pezkuwi Portal, or the upstream polkadot.js.org pages the entries came from.
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
name: PR
|
|
on: [pull_request]
|
|
|
|
|
|
# Read-only token: no step writes through GITHUB_TOKEN.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pr:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
step: ['lint', 'test', 'build', 'docs']
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
YARN_ENABLE_SCRIPTS: false
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 'lts/*'
|
|
- name: ${{ matrix.step }}
|
|
if: always()
|
|
run: |
|
|
yarn install --immutable
|
|
yarn ${{ matrix.step }}
|
|
# `yarn lint` runs eslint --fix and `yarn build` regenerates the augment
|
|
# interfaces, so both pass on a tree they rewrote. The committed tree must
|
|
# already be what they produce.
|
|
- name: tree unchanged
|
|
run: git diff --exit-code --stat
|
|
# The package.json each build/ directory holds is what npm receives: every
|
|
# entry point must name a file that is there, with no ./build/ or ./cjs/cjs/
|
|
# path and no string spread into exports (the January 2026 fault).
|
|
- name: check built manifests
|
|
if: matrix.step == 'build'
|
|
run: python3 scripts/check-built-manifests.py .
|
|
# The four polkadot-api packages ship committed dist/ builds; their source
|
|
# maps must embed exactly the src/ committed beside them.
|
|
- name: check papi sources
|
|
if: matrix.step == 'lint'
|
|
run: node scripts/check-papi-sources.mjs
|