Skip to content

fix: add stax-xml build step before docs build #13

fix: add stax-xml build step before docs build

fix: add stax-xml build step before docs build #13

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: "10.18.0"
- name: Install dependencies
run: pnpm install
- name: Build stax-xml package
run: pnpm --filter=stax-xml build
- name: Generate TypeDoc documentation
run: pnpm --filter=stax-xml typedoc:converter
- name: Build documentation
run: pnpm docs:build
env:
NODE_ENV: production
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: packages/docs/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4