Skip to content

more example TS declaration fix #135

more example TS declaration fix

more example TS declaration fix #135

Workflow file for this run

name: Documentation
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
- run: pnpm i
- run: pnpm doc
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: packages/melonjs/docs/
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: api-reference
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4