Skip to content

chore: align api extractor with typescript #120

chore: align api extractor with typescript

chore: align api extractor with typescript #120

Workflow file for this run

name: Publish to GitHub Pages
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.25.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "pnpm"
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build Docs
env:
VITE_BASE_URL: /formbox-renderer/
run: pnpm --filter @formbox/docs build
- name: Build Storybook
env:
VITE_BASE_URL: /formbox-renderer/storybook/
run: pnpm --filter @formbox/storybook build
- name: Build SWM
env:
VITE_BASE_URL: /formbox-renderer/swm/
run: pnpm --filter @formbox/swm build
- name: Consolidate Pages output
run: |
rm -rf site/docs/dist/server
mkdir -p site/docs/dist/storybook
mkdir -p site/docs/dist/swm
cp -R site/storybook/dist/. site/docs/dist/storybook/
cp -R site/swm/dist/. site/docs/dist/swm/
- name: Add GitHub ribbon to built files
run: |
# Add GitHub fork ribbon CSS to the head
sed -i 's|</head>| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />\n </head>|' site/docs/dist/storybook/index.html
# Add GitHub fork ribbon HTML to the body
sed -i 's|<body>|<body>\n <a class="github-fork-ribbon" href="https://github.com/HealthSamurai/formbox-renderer" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>|' site/docs/dist/storybook/index.html
- name: Publish
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: site/docs/dist