Skip to content

Publish TypeScript SDK documentation (#220) #1

Publish TypeScript SDK documentation (#220)

Publish TypeScript SDK documentation (#220) #1

Workflow file for this run

name: Deploy TypeScript SDK documentation
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: github-pages
cancel-in-progress: false
jobs:
build:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- run: npm ci
- run: npm run docs:check
- uses: actions/configure-pages@v6
- uses: actions/upload-pages-artifact@v5
with:
path: build/docs/html
deploy:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5